Traceback (most recent call last):
File "/home/daniel/web2py/gluon/restricted.py", line 98, in
restricted
exec ccode in environment
File "/home/daniel/web2py/applications/tapthat/controllers/
default.py", line 13, in <module>
File "/home/daniel/web2py/gluon/globals.py", line 75, in <lambda>
self._caller = lambda f: f()
File "/home/daniel/web2py/applications/tapthat/controllers/
default.py", line 7, in user
def user(): return dict(form=auth())
File "/home/daniel/web2py/gluon/tools.py", line 403, in __call__
return self.register()
File "/home/daniel/web2py/gluon/tools.py", line 657, in register
group_id = self.add_group("user_%s" % form.vars.id, description)
File "/home/daniel/web2py/gluon/tools.py", line 1072, in add_group
group_id = self.settings.table_group.insert(role=role,
AttributeError: 'NoneType' object has no attribute 'insert'
auth=Auth(globals(),db) # authentication/
authorization
#auth.settings.mailer=mail # for user email
verification
#crud=Crud(globals(),db) # for CRUD helpers using
auth
#crud.settings.auth=auth # (optional) enforces
authorization on crud
#auth.define_tables()
auth.settings.table_user = db.define_table(
"auth_user",
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=''),
db.Field('gender', 'string', default='Male'),
db.Field('show_name', 'boolean'),
)
table = auth.settings.table_user
table.first_name.requires = IS_NOT_EMPTY()
table.last_name.requires = IS_NOT_EMPTY()
table.gender.requires = IS_IN_SET(['Male','Female'])
table.password.requires = CRYPT()
table.email.requires = [IS_EMAIL(), IS_NOT_IN_DB(db, '%s.email' %
auth.settings.table_user._tablename)]
Any ideas? :S
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---