Hi All,
Could someone give me some tips on how to setup Identity with SQLAlchemy
please?
I've done a fresh install of TurboGears 0.9a6. The install went no problem.
I then ran the tg-admin as below:
$ tg-admin quickstart testme
Enter package name [testme]:
Do you need Identity (usernames/passwords) in this project? [no] yes
Select your provider sqlobject or sqlalchemy [sqlobject]: sqlalchemy
The tg-admin script completed no problem.
I then modified the dev.cfg and change the following line
sqlobject.dburi="sqlite://%(current_dir_uri)s/devdata.sqlite"
to
sqlalchemy.dburi="sqlite://%(current_dir_uri)s/testmedb.sqlite"
I also change "myApp" in the model.py file to "testme".
I then start the app with start-testme.py but I got exception about
"AttributeError: 'thread._local' object has no attribute 'engine'".
Below is the error log.
2006-05-11 10:18:30,030 turbogears.visit INFO Visit Tracking starting
2006-05-11 10:18:30,036 turbogears.visit INFO Visit filter initialised
Unhandled exception in thread started by <bound method Server._start of
<cherrypy._cpserver.Server object at 0xb7bf95ac>>
Traceback (most recent call last):
File "CherryPy-2.2.1-py2.4.egg/cherrypy/_cpserver.py", line 78, in _start
File "CherryPy-2.2.1-py2.4.egg/cherrypy/_cpengine.py", line 108, in _start
File "TurboGears-0.9a6-py2.4.egg/turbogears/startup.py", line 219, in
startTurboGears
File "TurboGears-0.9a6-py2.4.egg/turbogears/visit/api.py", line 68, in
start_extension
File "TurboGears-0.9a6-py2.4.egg/turbogears/visit/api.py", line 87, in
create_extension_model
File "TurboGears-0.9a6-py2.4.egg/turbogears/visit/savisit.py", line 22, in
create_model
File "build/bdist.linux-i686/egg/sqlalchemy/schema.py", line 235, in
create
File "build/bdist.linux-i686/egg/sqlalchemy/ext/proxy.py", line 50, in
__getattr__
File "build/bdist.linux-i686/egg/sqlalchemy/ext/proxy.py", line 114, in
get_engine
AttributeError: 'thread._local' object has no attribute 'engine'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---