update() is a method............you 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: > > > Hello, > > Why do I get the following error message when I have set the rname for > that field and have set check_reserved to None? > > <type 'exceptions.SyntaxError'> Field: invalid field name: update, use > rname for "funny" namesVersion > web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47 > Python Python 2.7.12: C:\Python27\python.exe (prefix: C:\Python27) > Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > > Traceback (most recent call last): > File "C:\Users\Edwin\Applications\web2py\gluon\restricted.py", line 227, in > restricted > exec ccode in environment > File > "C:/Users/Edwin/Applications/web2py/applications/create/models/db_tables.py" > <http://localhost:8000/admin/default/edit/create/models/db_tables.py>, line > 24, in <module> > Field('update', rname='wac_update', type='string', default=None), > File > "C:\Users\Edwin\Applications\web2py\gluon\packages\dal\pydal\objects.py", > line 1438, in __init__ > 'use rname for "funny" names' % fieldname) > SyntaxError: Field: invalid field name: update, use rname for "funny" names > > > > Regards, Edwin > -- 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) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.