CVS commit (wiking): db.py
Milan Zamazal
pdm at devel.brailcom.org
Mon May 4 18:33:36 CEST 2009
Update of /var/lib/cvs/wiking/lib/wiking
In directory devel:/tmp/cvs-serv2830/lib/wiking
Modified Files:
db.py
Log Message:
Redundant dbconnection storage in PytisModule removed
/var/www/hosts/cvs.freebsoft.org/src/wiking:
Index: lib/wiking/db.py
===================================================================
RCS file: /var/lib/cvs/wiking/lib/wiking/db.py,v
retrieving revision 1.112
retrieving revision 1.111
diff -u -r1.112 -r1.111
--- lib/wiking/db.py 4 May 2009 16:33:34 -0000 1.112
+++ lib/wiking/db.py 4 May 2009 13:49:06 -0000 1.111
@@ -145,6 +145,7 @@
self._dbconnection = dbconnection
spec = self._spec(resolver)
self._data_spec = spec.data_spec()
+ self._connection_data = dbconnection
self._view = spec.view_spec()
self._exception_matchers = [(re.compile(regex), msg)
for regex, msg in self._EXCEPTION_MATCHERS]
@@ -161,7 +162,7 @@
return getattr(self, name)
def _delayed_init(self):
- self._data = self._data_spec.create(connection_data=self._dbconnection)
+ self._data = self._data_spec.create(connection_data=self._connection_data)
self._key = key = self._data.key()[0].id()
self._sorting = self._view.sorting()
if self._sorting is None:
More information about the Wiking-cvs
mailing list