Re: [web2py] Hide the Extra added fields from auth table during the registrations

2012-03-06 Thread Sanjeet Kumar
Thanks Bruno On Friday, February 24, 2012 11:36:08 AM UTC+5:30, rochacbruno wrote: def user(): *if 'register' in request.args: fields_to_hide = ['city', 'preferred_color', 'soccer_team'] for fieldname in fields_to_hide: field = db.auth_user[fieldname]

[web2py] Hide the Extra added fields from auth table during the registrations

2012-02-23 Thread Sanjeet Kumar
I am added the some extra fields in the auth_user table and i want to hide those fields when the user will go for the registration user can only see the following fields during the registration: - First name - Last name - email-id - Password - verify password

Re: [web2py] Hide the Extra added fields from auth table during the registrations

2012-02-23 Thread Bruno Rocha
def user(): *if 'register' in request.args: fields_to_hide = ['city', 'preferred_color', 'soccer_team'] for fieldname in fields_to_hide: field = db.auth_user[fieldname] field.readable = field.writable = False* return