[web2py] Re: rname for a reserved name?

2015-08-19 Thread Niphlod
this is python 101 . You can't pass an unnamed arg after a named one. Field definition is as follows fieldname, type='string', length=None, default=DEFAULT, required=False, requires=DEFAULT, ondelete='CASCADE', blablablabla So, you'd need to pass Field('province', rname='state', type=citext) in

Re: [web2py] Re: rname for a reserved name?

2015-08-19 Thread Niphlod
or, if you prefer, Field('province', citext, rname='state') the important thing being that you can't put a non-named arg after a named one. On Wednesday, August 19, 2015 at 2:08:15 PM UTC+2, Johann Spies wrote: Thanks Nophlod. Johann -- Resources: - http://web2py.com -

Re: [web2py] Re: rname for a reserved name?

2015-08-19 Thread Johann Spies
Thanks Nophlod. Johann -- 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