I believe that should work.

Anthony

On Monday, June 25, 2012 10:41:48 PM UTC-4, Horus wrote:
>
> I saw that in the documentation. Can auth_user reference a table I create? 
> so...
>
>
> auth.settings.extra_fields['auth_user']= [
>                 Field('timezone_id',db.base_timezones),
>                 Field('type_id',db.base_types),
>                 Field('sex_id',db.base_sexes),
>                 Field('photo', 
> uploadfolder=os.path.join(request.folder,'uploads/users')),
>                 Field('ip', 'string', length=40),
>                 Field('agent', 'text'),
>                 Field('phone', 'string', length=16),
>                 Field('zip', 'string', length=16),
>                 Field('city', 'string', length=64),
>                 Field('state' 'string', length=64),
>                 Field('country', 'string', length=64),
>                 Field('latitude', 'decimal', required=True, notnull=True),
>                 Field('longitude', 'decimal', required=True, notnull=True)
>                 ]
>
>
> where
>
> Field('timezone_id',db.base_timezones),
> Field('type_id',db.base_types),
> Field('sex_id',db.base_sexes),
>
> are other tables
>
>
> On Monday, June 25, 2012 10:33:47 PM UTC-4, Massimo Di Pierro wrote:
>>
>> You can defined your own auth_user before auth.define_table and your own 
>> will be used. Or you can use
>>
>> auth.settings.extra_fields['auth_user'] = 
>> [Field(...),Field(...),Field(...), ... ]
>>
>> before auth.define_tables()
>>
>> On Monday, 25 June 2012 18:43:33 UTC-5, Horus wrote:
>>>
>>> is there a way to add other tables to the current auth table setup ?
>>> I am aware of customizing existing tables but not adding tables to the 
>>> database structure. 
>>>
>>> e.g. 
>>>
>>> Is it VALID to add other tables such at a country table and have 
>>> auth_user reference this table without breaking web2py internals?
>>> How can this be done if possible?
>>>
>>

-- 



Reply via email to