thanks

On Jul 5, 2:51 pm, Yarko Tymciurak <[email protected]> wrote:
> yes, it looks like you found a typo....
> you are correct;  "the requires"  at the end of the email field definition
> didn't have a closing ")," for that field...
>
> On Sun, Jul 5, 2009 at 2:30 PM, weheh <[email protected]> wrote:
>
> > Missing closing braces and comma ")," at end of email field
> > definition.
>
> > On Jul 5, 1:55 pm, mdipierro <[email protected]> wrote:
> > > what is the error?
>
> > > On Jul 5, 12:36 pm, weheh <[email protected]> wrote:
>
> > > >http://mdp.cti.depaul.edu/examples/default/tools#authentication
>
> > > > has an error in the code snippet on custom user tables.
>
> > > > Here is my correction:
>
> > > > auth.settings.table_user = db.define_table(
> > > >         auth.settings.table_user_name,
> > > >         db.Field('first_name', length=128,default=''),
> > > >         db.Field('last_name', length=128,default=''),
> > > >         db.Field('email', length=128,default='',
> > > >                 requires = [IS_EMAIL(),
>
> > IS_NOT_IN_DB(db,'%s.email'%self.settings.table_user_name)]
> > > >                 ),
> > > >         db.Field('password', 'password', readable=False,
> > > >                 label='Password', requires=CRYPT()),
> > > >         db.Field('registration_key', length=128,
> > > >                 writable=False, readable=False,default=''),
> > > >         )- Hide quoted text -
>
> > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to