Re: [web2py] auth_user fields writable/readable False

2011-08-31 Thread Bruno Rocha
You can also do: auth.settings.profile_fields = ['first_name','last_name','email'] # a list with fields and the order you want to bw shown in profile page. -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuid

Re: [web2py] auth_user fields writable/readable False

2011-08-31 Thread Richard Vézina
http://web2py.com/book/default/chapter/08?search=setting#Customizing-Auth Maybe you can try at the model level? Also if you define your auth tables and rename it you maybe have to use the new name... Not sure of that actually. Richard On Wed, Aug 31, 2011 at 1:05 PM, annet wrote: > I have two

Re: [web2py] auth_user fields writable/readable False

2011-08-31 Thread Bruno Rocha
are you creating the form object before or after this? You need to specify attributes before the creation of the form object. db.table.field.readable = False form = FORM() return dict(form=form) My way of doing it if 'register' in request.args: auth_user_opt = ['twitter','facebook','p

[web2py] auth_user fields writable/readable False

2011-08-31 Thread annet
I have two fields in the auth_user table which I don't want to be visible when the user edits his profile. In def user(): I set: def user(): if request.args(0)=='profile': db.auth_user.comment.readable=False db.auth_user.comment.writable=False db.auth_user.repl