Re: [web2py] Re: Web3py

2019-05-19 Thread John Bannister
Hi Guys, Couple of things. 1: I added a print('Dependancies %s ' % reloader.get_dependencies(module)) just before the output to console in web3py/core.py. Here is the output (not formatted):- Dashboard is at: http://127.0.0.1:8000/_dashboard [ ] loading examples ... Dependancies None [A[OK]

Re: [web2py] Re: Web3py

2019-05-19 Thread John Bannister
Just an update to the below. It seems that the from . import 'whatever' is where the issue is with the reloader as if I do for example import os or import datetime in the __init__.py they both show up in the list of dependencies. Anything with a from . import 'whatever' just lists the apps/my

Re: [web2py] Re: Web3py

2019-05-19 Thread 黄祥
tested latest commit (115) about recent tickets - recent tickets can be deleted but when refresh the browser, http://localhost:8000/_dashboard it will appears again - recent tickets can be edited, not sure why the ticket can be edited ? - when click create, it show forms, but can't be saved, not s

Re: [web2py] Re: Web3py

2019-05-19 Thread 黄祥
after hit 'reload' affect the '_dashboard', when do crud for 'recent tickets' (before hit 'reload', no error occured on terminal) [OK] reloaded _dashboard [OK] reloaded _scaffold [OK] reloaded examples [OK] reloaded myapp [OK] reloaded superheroes [OK] reloaded todo E

[web2py] Re: IS_NOT_EMPTY() "takes away" a dropbox with a list of items referenced by a foreign key -

2019-05-19 Thread John Bannister
Hi Vlad, I think I have come across this issue as well some time ago. Can you try IS_NOT_EMPY() OR IS_IN_DB(id ...) This should hopefully bring back your drop down list. BR John -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (S

[web2py] Re: Using parse_as_rest: problem with cross joins?

2019-05-19 Thread David Orme
Hi Massimo, I saw that announcement shortly after submitting the question. I've downloaded the developer source (/static/nightly, with VERSION contents "Version 2.18.5-stable+timestamp.2019.04.08.04.22.03") and neither dbapi.py (nor it's recent rebranding as restapi.py) is in that zip. Is it re

[web2py] Re: Using parse_as_rest: problem with cross joins?

2019-05-19 Thread David Orme
Sorry, being dim. The web2py repo links out to pydal, so I can just clone web2py/web2py. Cheers, David -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- Y

[web2py] Scaffold Web2py Models and SQLForm.smartgrid

2019-05-19 Thread Kevin Keller
Hello, has anyone written a scaffolder ideally web based, where a non technical user can define tables and fields including relations and the new app getes generated and put into the applications folder or by creating a new controller with SQLFORM.smartgrid on the tables defined by the user?

Re: [web2py] Re: Web3py

2019-05-19 Thread Massimo Di Pierro
ok you are right. reloader it broken. Please try the latest version I posted. I dicthed reloader but we may have some side effects. On Sunday, 19 May 2019 02:38:07 UTC-7, John Bannister wrote: > > Hi Guys, > > Couple of things. > > 1: I added a print('Dependancies %s ' % reloader.get_dependencie

Re: [web2py] Re: Web3py

2019-05-19 Thread Massimo Di Pierro
right we should not be able to edit those. Will fix. On Sunday, 19 May 2019 03:49:22 UTC-7, 黄祥 wrote: > > tested latest commit (115) about recent tickets > - recent tickets can be deleted but when refresh the browser, > http://localhost:8000/_dashboard it will appears again > - recent tickets can

Re: [web2py] Re: Web3py

2019-05-19 Thread Massimo Di Pierro
db.commit() is missing. fixing it later today. On Sunday, 19 May 2019 03:56:19 UTC-7, 黄祥 wrote: > > after hit 'reload' affect the '_dashboard', when do crud for 'recent > tickets' (before hit 'reload', no error occured on terminal) > [OK] reloaded _dashboard > [OK] reloaded _scaffold >

Re: [web2py] Re: Redis and Python3?

2019-05-19 Thread Stéphane Krikorian
Thanks for your feedback Jim. Since there are known problems with python-redis3 i force python-redis2 (2.10.6) I tried your suggestion but it fails if 'unique_key' in self and rtn['unique_key'] == self.unique_key: TypeError: argument of type 'MockQuery' is not iterable Did anyone succeed in run

Re: [web2py] Re: Web3py

2019-05-19 Thread 黄祥
in latest commit (116) for reload fixed: - edit, add and delete function on controllers take effects after hit reload button - route for is refreshed after hit reload button (last reported dissapear in some webapp) btw, the button said 'Reaload Apps' is it intention or correct one is 'Reload

[web2py] Re: IS_NOT_EMPTY() "takes away" a dropbox with a list of items referenced by a foreign key -

2019-05-19 Thread Anthony
The default validator for a reference field is IS_EMPTY_OR(IS_IN_DB(...)). When SQLFORM encounters a field without an explicit "widget" specified but with an IS_IN_SET or IS_IN_DB validator, it automatically generates a select widget with options derived from the validator. In your case, you ha

[web2py] Re: IS_NOT_EMPTY() "takes away" a dropbox with a list of items referenced by a foreign key -

2019-05-19 Thread Vlad
got it, that makes sense - Thank you very much! On Sunday, May 19, 2019 at 10:16:58 PM UTC-4, Anthony wrote: > > The default validator for a reference field is IS_EMPTY_OR(IS_IN_DB(...)). > When SQLFORM encounters a field without an explicit "widget" specified but > with an IS_IN_SET or IS_IN_

[web2py] Re: IS_NOT_EMPTY() "takes away" a dropbox with a list of items referenced by a foreign key -

2019-05-19 Thread Vlad
Got it working - Thank you! On Sunday, May 19, 2019 at 7:16:40 AM UTC-4, John Bannister wrote: > > Hi Vlad, > > I think I have come across this issue as well some time ago. Can you try > IS_NOT_EMPY() OR IS_IN_DB(id ...) > > This should hopefully bring back your drop down list. > > BR > Joh

[web2py] backup page when site is broken

2019-05-19 Thread Alex Glaros
how would I redirect to a plain static web page that displays "This Web2py app is temporarily down while we install updates"? Could I redirect to another site? Is there code to sense when site is broken then automatically redirects users? I use pythonanywhere.com, redirect through a SSL service