from trunk, now a different error:
Traceback (most recent call last):
File "/web2py/helpdesk/gluon/restricted.py", line 204, in restricted
exec ccode in environment
File "/web2py/helpdesk/applications/helpdesk/controllers/default.py:index",
line 11, in <module>
File "applications/helpdesk/modules/auth.py", line 109, in __call__
user_profile = UserProfile.get_or_create_from_session()
File "/web2py/helpdesk/applications/helpdesk/models/dbowrappers.py",
line 234, in get_or_create_from_session
return cls.from_session() or cls.create_admin()
File "/web2py/helpdesk/applications/helpdesk/models/dbowrappers.py",
line 226, in create_admin
id = cls.db.user_profile.insert(**data)
File "/web2py/helpdesk/gluon/dal.py", line 5063, in insert
return self._db._adapter.insert(self,self._listify(fields))
File "/web2py/helpdesk/gluon/dal.py", line 3464, in insert
tmp = table._tableobj(**dfields)
File "/google_appengine/google/appengine/ext/db/__init__.py", line
945, in __init__
prop.__set__(self, value)
File "/google_appengine/google/appengine/ext/db/__init__.py", line
599, in __set__
value = self.validate(value)
File "/google_appengine/google/appengine/ext/db/__init__.py", line
3269, in validate
raise BadValueError('Property %s must be a User' % self.name)
BadValueError: Property user must be a User
On Fri, Nov 4, 2011 at 10:14 AM, Massimo Di Pierro
<[email protected]> wrote:
> Try the latest trunk.
>
> On Nov 3, 6:53 pm, Plumo <[email protected]> wrote:
>> db.define_table('user_profile',
>> Field('name'),
>> Field('user', gae.UserProperty()),
>> Field('email'),
>> Field('active', 'boolean'),
>> Field('role_worker', 'boolean'),
>> Field('role_facilitator', 'boolean'),
>> Field('role_admin', 'boolean'),
>> )