[web2py] Web2py .exe pack custom

2019-01-05 Thread mostwanted
Hi guys, can anyone please explain to me how the .exe option under pack custom works? I have tried it and after packaging and unzipping the zipped folder I wasn't sure what is should be looking for. Regards Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Location of the confirm() function in the _onclick="return confirm('text');"

2019-01-05 Thread Massimo Di Pierro
confirm is a built-in JS function. :-) On Saturday, 5 January 2019 10:16:37 UTC-8, Weronika Swiechowicz wrote: > > I have the following buttons and form definitions: > > buttons=[INPUT(_type=*'button'*, > > _value=*'Upload Message**'*, > > _onclick=*"ret

[web2py] Re: modular web2py - need help

2019-01-05 Thread Massimo Di Pierro
Anybody wants to help 1) moving the scheduler and validator tests into pydal. 2) moving the template tests into gluon/packages/template/tests 3) create a gluon/packages/template/setup.py Massimo -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2p

[web2py] Upload - need help

2019-01-05 Thread wswiecho
Hello, I have an upload field in my form. It works fine when I run it on the same machine as the web2py service. The issue comes when I run the service on the server and the UI on a different machine. The issue is the fact that existence of the file path I enter is checked on the server as oppo

[web2py] Location of the confirm() function in the _onclick="return confirm('text');"

2019-01-05 Thread wswiechowicz
I have the following buttons and form definitions: buttons=[INPUT(_type=*'button'*, _value=*'Upload Message**'*, _onclick=*"return confirm('Confirm deletion of asset. This will also remove asset from all groups.');"*), INPUT(_type=*'submit'*,

[web2py] Re: can access web2py app even if it's disabled

2019-01-05 Thread Massimo Di Pierro
I do not understand. You disable an app by creating a DISABLED file in the app folder. You can use the router to map different domains into different default apps. You see to mapping one into app and one into disabled_app which I assumed has the DISABLED file. You cannot map addresses into defaul

[web2py] Re: modular web2py - need help

2019-01-05 Thread Massimo Di Pierro
If you are getting the error: ImportError: cannot import name 'Cookie' Either your are not installing the latest pydal or you have two versions (one in Python site-packages?). If you can import pydal from outside the web2py folder, then the problem is the latter. Un-install it because it will

[web2py] Re: Scheduler

2019-01-05 Thread Massimo Di Pierro
this is not normal. when you restart it should pick the tasks. Can you help debug or share more info? On Thursday, 3 January 2019 06:26:51 UTC-8, fiubarc wrote: > > Hello! > > I have configured the scheduler to start at server restart but it does not > take the tasks that already exists in sche

[web2py] Re: Modules Import Problem.

2019-01-05 Thread Massimo Di Pierro
Do not do this. The models are executed at every http call and you end up with a longer and longer sys.path (memory leak). The problem is with the module itself, it does not uses relative imports. I recommend you put the module in web2py/site-packages On Wednesday, 2 January 2019 02:49:56 UTC-8,

Re: [web2py] DAL's fake_migrat and fake_migrate_all and migration problem with auth tables

2019-01-05 Thread Christian Varas
I never tryed fake migrate before but every time that I move an app to another server first I put the app in the server then I delete everything inside the database folder, then run the app via web browser (this create the structure of the database)? then resotre the db backup and done app + databa