Hi guys, The patch isn't working for me. Although it is a lot like my
changes. I didn't use threadlocals. During startup I'm getting an error
like:
File "c:\cygwin\home\geoff\turbogears\turbogears\visit\savisit.py",
line 17, in create_model
if not
TG_Visit.table.engine.dialect.has_table(TG_Visit.table.engine.session.get_connection(),
TG_Visit.table.name):
File "c:\cygwin\home\geoff\sqlalchemy\lib\sqlalchemy\ext\proxy.py",
line 35, in __getattr__
e = self.get_engine()
File "c:\cygwin\home\geoff\sqlalchemy\lib\sqlalchemy\ext\proxy.py",
line 57, in get_engine
self._engine = create_engine(dburi, **self.kwargs)
File
"c:\cygwin\home\geoff\sqlalchemy\lib\sqlalchemy\engine\__init__.py",
line 92, in create_engine
return strategy.create(*args, **kwargs)
File
"c:\cygwin\home\geoff\sqlalchemy\lib\sqlalchemy\engine\strategies.py",
line 54, in create
module = u.get_module()
AttributeError: 'NoneType' object has no attribute 'get_module'
I didn't include the entire traceback, just into savisit.py. I'm
working against the latest svn checkout from sqlalchemy. (Not sure if
that matters.) I also create the table no matter what each time and
just catch the already existing exception. Like:
try:
visit_identity_table.create()
user_table.create()
group_table.create()
permission_table.create()
user_group.create()
group_permission.create()
__session__.flush()
except:
pass
at the end of saprovider.py
Arnar, if you'd like I can email you a patch for my changes. The
changes are a bit hackerish but I was more interested in making it work
at all than work well.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---