--- MPIWGWeb/Attic/MPIWGRoot.py 2012/01/09 10:36:48 1.1.2.35 +++ MPIWGWeb/Attic/MPIWGRoot.py 2012/01/09 13:14:46 1.1.2.36 @@ -21,6 +21,8 @@ from bibliography import * import time import xml.dom.minidom import sys +import transaction + #from Ft.Xml.XPath import Evaluate #from Ft.Xml.XPath.Context import Context #from Ft.Xml.Domlette import NonvalidatingReader,PrettyPrint, Print @@ -96,6 +98,7 @@ class MPIWGRoot(ZSQLExtendFolder): storage = ClientStorage.ClientStorage(addr) db = DB(storage) self._v_harvestDV=db + self._v_harvestDV=db conn = db.open() dbroot = conn.root() if not dbroot.has_key('templates'): @@ -106,6 +109,8 @@ class MPIWGRoot(ZSQLExtendFolder): logging.debug("CACHE2:"+repr(self._v_harvestCache)) return self._v_harvestCache + + def __del__(self): if self._v_harvestCache!=None: self._v_harvestDV.close();