[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_* table. Must be placed before auth.define_tables()


[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 application, the user/group db model  is created 
 automatically. 
 How can I extend it? Should I redefine it? 
 I would like to add some fields and some foreign keys to users or 
 group. 

 Thanks to all! (... and sorry for my english)



[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()