[Checkins] SVN: z3c.zalchemy/trunk/src/z3c/zalchemy/datamanager.py
not resetting the engine on transaction end since we have one
engine for all threads.
Christian Zagrodnick
cz at gocept.com
Thu Sep 6 04:47:28 EDT 2007
Log message for revision 79489:
not resetting the engine on transaction end since we have one engine for all threads.
Changed:
U z3c.zalchemy/trunk/src/z3c/zalchemy/datamanager.py
-=-
Modified: z3c.zalchemy/trunk/src/z3c/zalchemy/datamanager.py
===================================================================
--- z3c.zalchemy/trunk/src/z3c/zalchemy/datamanager.py 2007-09-06 08:43:02 UTC (rev 79488)
+++ z3c.zalchemy/trunk/src/z3c/zalchemy/datamanager.py 2007-09-06 08:47:27 UTC (rev 79489)
@@ -50,7 +50,7 @@
# create_engine consumes the keywords, so better to make a copy first
kw = {}
kw.update(self.kw)
- # create a new engine and configure it thread local
+ # create a new engine and configure it thread-local
self._v_engine = sqlalchemy.create_engine(
self.dsn, echo=self.echo, encoding=self.encoding,
convert_unicode=self.convert_unicode,
@@ -231,9 +231,6 @@
def _cleanup(self):
self.session.clear()
del ctx.current
- utils = getUtilitiesFor(IAlchemyEngineUtility)
- for name, util in utils:
- util._resetEngine()
class AlchemySavepoint(object):
More information about the Checkins
mailing list