Cant auth be changed somhow to it will be easier to extend like this:

db.define_table('auth_user2',
                db.auth_user,
                SQLField('nickname'),
                SQLField('image','upload'))

The problem to day is the:
table.email.requires = [IS_EMAIL(), IS_NOT_IN_DB(db, '%s.email'
                                 % self.settings.table_user._tablename)]

It will check the auth_user table instead of my extended table for the email
to be uniq.

I have tested to add this but it doesnt help:

db.auth_user2.email.requiers     = [IS_EMAIL(),
                                    IS_NOT_IN_DB(db, 'auth_user2.email')]

/T


-- 
______________________________________________
Robert Marklund

Phone: +46 (0)46 19 36 82
Mobile: +46 (0)70 213 22 76
E-mail: robbelibob...@gmail.com
______________________________________________

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