[Erp5-report] r38635 jm - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Sep 25 14:02:22 CEST 2010


Author: jm
Date: Sat Sep 25 14:02:21 2010
New Revision: 38635

URL: http://svn.erp5.org?rev=38635&view=rev
Log:
Do garbage collection to remove references from non-persistent objects

This commit is similar to r32811 and should fix regressions caused by r38601
for good.

Modified:
    erp5/trunk/products/ERP5/Document/BusinessTemplate.py

Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=38635&r1=38634&r2=38635&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Sat Sep 25 14:02:21 2010
@@ -3374,6 +3374,7 @@ class DocumentTemplateItem(BaseTemplateI
             # Then we need to flush from all caches, not only the one from this
             # connection
             self.getPortalObject()._p_jar.db().cacheMinimize()
+            gc.collect()
     else:
       BaseTemplateItem.install(self, context, trashbin, **kw)
       for id in self._archive.keys():




More information about the Erp5-report mailing list