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

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Sep 16 11:32:01 CEST 2008


Author: jerome
Date: Tue Sep 16 11:31:43 2008
New Revision: 23629

URL: http://svn.erp5.org?rev=23629&view=rev
Log:
Update cache when installing a new cache plugin

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=23629&r1=23628&r2=23629&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Tue Sep 16 11:31:43 2008
@@ -864,6 +864,12 @@
             # skip transforms that couldn't have been initialized
             if obj.title != 'BROKEN':
               container._mapTransform(obj)
+          elif obj.meta_type in ('ERP5 Ram Cache',
+                                 'ERP5 Distributed Ram Cache',
+                                 'ERP5 SQL Cache'):
+            assert container.meta_type == 'ERP5 Cache Factory'
+            container.getParentValue().updateCache()
+           
           recurse(restoreHook, obj)
       # now put original order group
       # we remove object not added in forms




More information about the Erp5-report mailing list