[Erp5-report] r9623 - /erp5/trunk/products/CMFActivity/ActivityTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Sep 4 09:56:05 CEST 2006


Author: jerome
Date: Mon Sep  4 09:56:03 2006
New Revision: 9623

URL: http://svn.erp5.org?rev=9623&view=rev
Log:

Clear SkinsTool cache, because there's only one cache per REQUEST, and with
timer service, we have the same request for potentially multiple portals. 


Modified:
    erp5/trunk/products/CMFActivity/ActivityTool.py

Modified: erp5/trunk/products/CMFActivity/ActivityTool.py
URL: http://svn.erp5.org/erp5/trunk/products/CMFActivity/ActivityTool.py?rev=9623&r1=9622&r2=9623&view=diff
==============================================================================
--- erp5/trunk/products/CMFActivity/ActivityTool.py (original)
+++ erp5/trunk/products/CMFActivity/ActivityTool.py Mon Sep  4 09:56:03 2006
@@ -500,6 +500,14 @@
           elif not self.distributingNode:
               self.distribute(1)
               #LOG('CMFActivity:', INFO, 'distributingNodes empty! Calling distribute(1)')
+          
+          # SkinsTool uses a REQUEST cache to store skin objects, as
+          # with TimerService we have the same REQUEST over multiple
+          # portals, we clear this cache to make sure the cache doesn't
+          # contains skins from another portal.
+          stool = getToolByName(self, 'portal_skins', None)
+          if stool is not None:
+            stool.changeSkin(None)
           
           # call tic for the current processing_node
           # the processing_node numbers are the indices of the elements in the node tuple +1




More information about the Erp5-report mailing list