[Checkins] SVN: Products.ZSQLAlchemy/trunk/ZSQLAlchemy.py some more
cleanup
Andreas Jung
andreas at andreas-jung.com
Sun Feb 4 11:38:33 EST 2007
Log message for revision 72365:
some more cleanup
Changed:
U Products.ZSQLAlchemy/trunk/ZSQLAlchemy.py
-=-
Modified: Products.ZSQLAlchemy/trunk/ZSQLAlchemy.py
===================================================================
--- Products.ZSQLAlchemy/trunk/ZSQLAlchemy.py 2007-02-04 16:36:39 UTC (rev 72364)
+++ Products.ZSQLAlchemy/trunk/ZSQLAlchemy.py 2007-02-04 16:38:33 UTC (rev 72365)
@@ -133,12 +133,12 @@
""" create a pool and cache it(?) """
if not hasattr(self, '_v_sqlalchemy_pool'):
-
pool = sqlalchemy.pool.QueuePool(self._getConnection,
max_overflow=10,
pool_size=10,
use_threadlocal=True)
self._v_sqlalchemy_pool = pool
+
return self._v_sqlalchemy_pool
@@ -151,11 +151,8 @@
security.declarePublic('getSession')
def getSession(self):
""" return a session proxy """
+ return SessionProxy(self.engine)
- engine = self.engine
- proxy = SessionProxy(engine)
- return proxy
-
@property
def mapperCache(self):
""" we cache the (mapperCls, tableCls) pair for
More information about the Checkins
mailing list