[web2py] Got error when I put 'fields' as an argument to SQLFORM.grid

2021-01-25 Thread at
Here is the code: `fields=['id', 'name']` `grid = SQLFORM.grid(db.engagement, fields=fields)` Error: `AttributeError('str' object has no attribute 'tablename')` -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://c

[web2py] Re: How to limit time execution of a function ? Modification of gluon ?

2021-01-25 Thread Dave S
On Monday, January 25, 2021 at 9:22:08 PM UTC-8 Dave S wrote: > On Tuesday, January 19, 2021 at 10:19:38 PM UTC-8 veron.p...@gmail.com > wrote: > >> Hello, >> >> here is my problem : lets' assume that i connect to the following URL : >> >> http://mysite/myapp/default/myfunc/param >> >> and that t

[web2py] Re: How to limit time execution of a function ? Modification of gluon ?

2021-01-25 Thread Dave S
On Tuesday, January 19, 2021 at 10:19:38 PM UTC-8 veron.p...@gmail.com wrote: > Hello, > > here is my problem : lets' assume that i connect to the following URL : > > http://mysite/myapp/default/myfunc/param > > and that the myfunc function in default.py makes a call to a function > f(param) w

[web2py] fake_migration issues

2021-01-25 Thread Dave S
Porting another (personal) application from my old 2.14.6 environment to 2.21.1., and copied both the table files and storage.sqlite from the old application. Index page works, but another page which displays a sorted list doesn't. Traceback (most recent call last): File "C:\Users\Dave\web2py