auth = Auth(db, host_names=configuration.get('host.names'))
auth.settings.extra_fields['auth_user']= [Field('language')]
auth.define_tables(username=False, signature=False)myStr = ''
for a in auth.user:
myStr += a+': '+str(auth.user.get(a))+'<br>'test = str(auth.settings.extra_fields.get('auth_user')[0])
Try db.auth_user(auth.user_id).language
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/7cgw04bcOiA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/2b60f329-b68f-4cc5-b5a2-fc9f23483d74%40googlegroups.com.