Just a side note,

what about using table inheritance, creating a user_profile table that
inherits from auth_table? I just saw it in the web2py book, it seems
similar to the django abstract base class where other model classes
may subclass from the abstract class inheriting all its fields.


>
>
>
>
>
> > On Friday, August 19, 2011 5:30:06 AM UTC-4, Anaconda wrote:
>
> > > On Aug 19, 12:52 am, pbreit <[email protected]> wrote:
> > > > To hide them without creating custom forms, set readable = writable =
> > > False
> > > > in the controller.
>
> > > Thanks, will that be in the def user(): controller.
>
> > Sure. You could set readable=writable=False in the model definition, and
> > then temporarily set them to True in the user() action when
> > request.args(0)=='profile'. Or default them to True and change them to False
> > when request.args(0)=='register'.

Reply via email to