[web2py] Re: Extend default user/group model

2011-07-26 Thread Simone Fiorenzoni
Ok, I will try... Thanks you both for your support!!! On 25 Lug, 22:35, pbreit pbreitenb...@gmail.com wrote: Also, extra_fields was recently added: - auth.settings.extra_fields['auth_user'].append(Field('country')) allows to extend auth_* tables without need of definiting a custom auth_*

[web2py] Re: Extend default user/group model

2011-07-25 Thread Anthony
See http://web2py.com/book/default/chapter/08#Customizing-Auth. Make sure you define your custom tables after you instantiate Auth, but before you call auth.define_tables(). Anthony On Monday, July 25, 2011 7:23:05 AM UTC-4, Simone Fiorenzoni wrote: Hi to all, when I create a new

[web2py] Re: Extend default user/group model

2011-07-25 Thread pbreit
Also, extra_fields was recently added: - auth.settings.extra_fields['auth_user'].append(Field('country')) allows to extend auth_* tables without need of definiting a custom auth_* table. Must be placed before auth.define_tables()