--- MPIWGWeb/Attic/MPIWGTemplate.py 2012/01/09 10:36:48 1.1.2.11 +++ MPIWGWeb/Attic/MPIWGTemplate.py 2012/01/13 10:01:28 1.1.2.13 @@ -9,6 +9,7 @@ from OFS.Folder import Folder from AccessControl import ClassSecurityInfo from MPIWGHelper import * from ZODB import FileStorage, DB +import transaction # dummy definitions for backwards compatibility import MPIWGFeature @@ -76,9 +77,11 @@ class MPIWGTemplate(ZopePageTemplate): templates = self.en.getHarvestCache() #templates = getattr(self,'getHarvestCache',self.en.getHarvestCache)() try: + rendered = self.pt_render() templates[self.absolute_url()]=rendered logging.debug("harvest:"+self.absolute_url()) + transaction.commit() return rendered except: logging.error("cannot harvest: %s"%self.absolute_url())