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 dict(form=auth())


On Fri, Feb 24, 2012 at 3:21 AM, Sanjeet Kumar <sanjeet....@gmail.com>wrote:

> 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
>
>


-- 

Bruno Rocha
[http://rochacbruno.com.br]

Reply via email to