[web2py] Re: Invalid field name although rname is set

2016-11-11 Thread Edwin Haver
Thank you for the explanation. The error message is a bit misleading in this respect. On Friday, November 11, 2016 at 5:30:09 PM UTC+4, Anthony wrote: > > Field names cannot be Python keywords or attribute names of the Table > object, even if using rname. The Table class inherits from > pydal.h

[web2py] Re: Invalid field name although rname is set

2016-11-11 Thread Anthony
Field names cannot be Python keywords or attribute names of the Table object, even if using rname. The Table class inherits from pydal.helpers.classes.BasicStorage, which has methods "update", "get", "keys", "values", etc. -- so none of those will work as field names. Anthony On Friday, Novemb

[web2py] Re: Invalid field name although rname is set

2016-11-11 Thread Niphlod
update() is a methodyou can't use a model that has a field that is named "update". It's true that you're using rname, but the problem is that you need to choose a less "funny" name for the field name, not the rname. On Friday, November 11, 2016 at 7:40:32 AM UTC+1, Edwin Haver wrote