auth.settings.table_user = db.define_table(
                self.settings.table_user_name,
                db.Field('first_name', length=128,default=''),
                db.Field('last_name', length=128,default=''),
                db.Field('email', length=128,default=''),
                db.Field('password', 'password',
readable=False,label='Password'),
                db.Field('registration_key', length=128,
writable=False, readable=False,default=''))
            table = auth.settings.table_user
            table.first_name.requires = IS_NOT_EMPTY()
            table.last_name.requires = IS_NOT_EMPTY()
            table.password.requires = CRYPT()
            table.email.requires = [IS_EMAIL(), IS_NOT_IN_DB(db,
'%s.email' % self.settings.table_user._tablename)]

You can add fields.

On Apr 6, 12:00 pm, Oscar <oscar.m...@gmail.com> wrote:
> What are the complete list of auth_user fields? and default values?
>
> Regards,
>
> Oscar.
>
> On 7 abr, 11:22, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > auth=Auth(globals(),db)
> > auth.settings.table_user=db.define_table('auth_user',.... fields
> > including first_name, last_name, email, password, registration_key ...
> > length=128..
> > ... validators on this table ...
> > auth.define_tables()
>
> > On Apr 6, 1:49 am, Oscar <oscar.m...@gmail.com> wrote:
>
> > > Thank you!
>
> > > So... how I can extend fields, I already asked that for T2 but what
> > > about auth?
>
> > > Regards,
>
> > > Oscar.
>
> > > On 25 mar, 14:01, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > That line is added by web2py at runtime. I but it appears in the
> > > > ticket not in the code and that would be ok,
>
> > > > On Mar 24, 1:22 pm, Fran <francisb...@googlemail.com> wrote:
>
> > > > > On Mar 24, 4:52 am, Oscar <oscar.m...@gmail.com> wrote:
>
> > > > > > response._vars=response._caller(user)
>
> > > > > Why do you have this line in default.py?
>
> > > > > I would try removing this...
>
> > > > > F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to