Hi, i have the following code:
db = DAL('mysql://user:[email protected]/dbname',
pool_size=8,
check_reserved=['mysql'],
lazy_tables=True,
migrate=False)
response.generic_patterns = ['*'] if request.is_local else []
import copy
db._adapter.types = copy.copy(db._adapter.types)
db._adapter.types['boolean']='TINYINT(1)'
db._adapter.TRUE = 1
db._adapter.FALSE = 0
from gluon.tools import Auth
auth = Auth(db, secure=False)
from gluon import current
from radiowidget import radiowidget
from customerio import CustomerIO
current.auth = auth
current.db = db
auth.settings.extra_fields['auth_user']= [
Field('lang', type='string', length=8, required=True, default='en', notnull
=True)]
auth.define_tables(username=False, signature=False)
db.auth_user.first_name.readable = db.auth_user.first_name.writable = False
db.auth_user.last_name.readable = db.auth_user.last_name.writable = False
I have no idea why registration fails, no errors. When i remove extra field
"lang" it works
any suggestions?
thanks
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.