[web2py] Re: New questions about translation

2019-08-21 Thread Константин Комков
I can do it!) I transferred table 'languages' from tables.py to db.py, becouse I need use it in extra_fields when tables.py file is not still included. db.py db.define_table( 'languages', Field('NAME',length=30) ) auth.settings.extra_fields['auth_user']= [Field('language','reference lang

[web2py] Re: New questions about translation

2019-08-14 Thread Константин Комков
In the book I find three possible ways for that: First it is customize auth_user table, but Massimo wrote that this way is not really recommended. Second it is add extra_fields, but I don't know how can I add type 'list:string' for extra_field and work with it. Third is modify profile function de