[Checkins] SVN: z3c.extfile/trunk/ delete datamanger on transaction
boundaries
Bernd Dorn
bernd.dorn at lovelysystems.com
Wed May 23 06:12:15 EDT 2007
Log message for revision 75903:
delete datamanger on transaction boundaries
Changed:
U z3c.extfile/trunk/CHANGES.txt
U z3c.extfile/trunk/src/z3c/extfile/datamanager.py
-=-
Modified: z3c.extfile/trunk/CHANGES.txt
===================================================================
--- z3c.extfile/trunk/CHANGES.txt 2007-05-23 09:03:12 UTC (rev 75902)
+++ z3c.extfile/trunk/CHANGES.txt 2007-05-23 10:12:14 UTC (rev 75903)
@@ -12,3 +12,6 @@
- New ++static++ namespace and index.html view for IReadFile, see
namespace.txt. This adds a dependency to z3c.filetype.
+- delete datamanager on transaction boundaries. this is needed if
+ running multiple tests with different hashdirs
+
Modified: z3c.extfile/trunk/src/z3c/extfile/datamanager.py
===================================================================
--- z3c.extfile/trunk/src/z3c/extfile/datamanager.py 2007-05-23 09:03:12 UTC (rev 75902)
+++ z3c.extfile/trunk/src/z3c/extfile/datamanager.py 2007-05-23 10:12:14 UTC (rev 75903)
@@ -38,6 +38,11 @@
def _close(self):
for f in self.files.values():
f.close()
+ self.files = {}
+ try:
+ del _storage.dataManager
+ except AttributeError:
+ pass
def abort(self, trans):
self._close()
More information about the Checkins
mailing list