I added field 'language' im my auth_user table in database. My file db.py contain: auth = Auth(db, host_names=configuration.get('host.names'))
*auth* *.settings.extra_fields['auth_user']= [Field('language')]* auth.define_tables(username=False, signature=False) How can I get value of language for current login user? myStr = '' for a in auth.user: myStr += a+': '+str(auth.user.get(a))+'<br>' myStr >>> id: 1 first_name: Константин last_name: Комков email: t...@gmail.com registration_key: reset_password_key: registration_id: test = str(auth.settings.extra_fields.get('auth_user')[0]) test >>> auth_user.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 the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/58233646-4ca0-4b19-9e33-90536918a66e%40googlegroups.com.