I've created a project with 09a5 using identity. Everything is at default values.
I've made sure that identity works with these default values.
Now, I'm trying to follow the "advice" in model.py:
class User(SQLObject):
"""
Reasonably basic User definition. ___Probably_would_want_additional_attributes___.
"""
.
.
So I've added:
locale = EnumCol(enumValues=['no','en','se','dk'])
to class User, because it seems like a reasonable thing to do.
I dropped the "default" database and ran tg-admin create sql with my modified model.py to create the tables.
(yes, I'm stating the obvious but rather than spend time and bandwidth answering "yes" to the inevitable questions..... :) )
Finally, after using catwalk to set up a user/group, I get this exception when accessing my app:
Page handler: <bound method Root.login of <scanmineadmin.controllers.root.Root object at 0xb7790a6c>>
Traceback (most recent call last):
File "/home/webdeveloper/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py", line 105, in _run
self.main()
File "/home/webdeveloper/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py", line 254, in main
body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in login
File "/home/webdeveloper/lib/python2.4/site-packages/TurboGears-0.9a5-py2.4.egg/turbogears/controllers.py", line 210, in expose
output = database.run_with_transaction(func._expose,func, accept, allow_json, allow_json_from_config,*args, **kw)
File "/home/webdeveloper/lib/python2.4/site-packages/TurboGears-0.9a5-py2.4.egg/turbogears/database.py", line 216, in run_with_transaction
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "/home/webdeveloper/lib/python2.4/site-packages/TurboGears-0.9a5-py2.4.egg/turbogears/controllers.py", line 230, in <lambda>
func._expose.when(rule)(lambda _func, accept, allow_json, allow_json_from_config,*args,**kw: _execute_func(
File "/home/webdeveloper/lib/python2.4/site-packages/TurboGears-0.9a5-py2.4.egg/turbogears/controllers.py", line 251, in _execute_func
output = errorhandling.try_call(func, *args, **kw)
File "/home/webdeveloper/lib/python2.4/site-packages/TurboGears-0.9a5-py2.4.egg/turbogears/errorhandling.py", line 71, in try_call
return func(self, *args, **kw)
File "/home/webdeveloper/Sites/scanmineadmin/scanmineadmin/controllers/root.py", line 25, in login
raise redirect(forward_url)
File "/home/webdeveloper/lib/python2.4/site-packages/TurboGears-0.9a5-py2.4.egg/turbogears/controllers.py", line 402, in redirect
raise cherrypy.HTTPRedirect(
File "/home/webdeveloper/lib/python2.4/site-packages/TurboGears-0.9a5-py2.4.egg/turbogears/controllers.py", line 356, in url
tgpath = "/".join(list(tgpath))
TypeError: iteration over non-sequence
The traceback does not seem identity related at all. I hope someone can make sense of it :)
regards
/rune
---------------------------------------------------------------------
Behind the firewall, nobody can hear you scream...