[SQL-CVS] SQLObject/SQLObject DBConnection.py,1.38,1.39
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <ian...@us...> - 2003-07-10 20:02:32
|
Update of /cvsroot/sqlobject/SQLObject/SQLObject
In directory sc8-pr-cvs1:/tmp/cvs-serv619/SQLObject
Modified Files:
DBConnection.py
Log Message:
Added the (needed) cache object to Transaction
Index: DBConnection.py
===================================================================
RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/DBConnection.py,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** DBConnection.py 10 Jul 2003 19:01:27 -0000 1.38
--- DBConnection.py 10 Jul 2003 19:27:50 -0000 1.39
***************
*** 50,53 ****
--- 50,54 ----
self.debug = debug
self.cache = CacheSet(cache=cache)
+ self.doCache = cache
self.style = style
***************
*** 330,333 ****
--- 331,335 ----
self._dbConnection = dbConnection
self._connection = dbConnection.getConnection()
+ self.cache = CacheSet(cache=dbConnection.doCache)
def query(self, s):
***************
*** 349,353 ****
self.rollback()
self._dbConnection.releaseConnection(self._connection)
!
class MySQLConnection(DBAPI):
--- 351,355 ----
self.rollback()
self._dbConnection.releaseConnection(self._connection)
!
class MySQLConnection(DBAPI):
|