[Erp5-report] r13816 - /erp5/trunk/products/ERP5Type/patches/DCWorkflow.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 30 11:29:02 CEST 2007


Author: aurel
Date: Fri Mar 30 11:29:01 2007
New Revision: 13816

URL: http://svn.erp5.org?rev=13816&view=rev
Log:
define cache factory instead of duration

Modified:
    erp5/trunk/products/ERP5Type/patches/DCWorkflow.py

Modified: erp5/trunk/products/ERP5Type/patches/DCWorkflow.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/DCWorkflow.py?rev=13816&r1=13815&r2=13816&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/DCWorkflow.py (original)
+++ erp5/trunk/products/ERP5Type/patches/DCWorkflow.py Fri Mar 30 11:29:01 2007
@@ -147,7 +147,7 @@
       return map((lambda (id, val): val), res)
 
     # Return Cache
-    _listGlobalActions = CachingMethod(_listGlobalActions, id='listGlobalActions', cache_duration = 300)
+    _listGlobalActions = CachingMethod(_listGlobalActions, id='listGlobalActions', cache_factory = 'erp5_ui_short')
     user = str(_getAuthenticatedUser(self))
     return _listGlobalActions(user=user, id=self.id, portal_path=self._getPortalRoot().getPhysicalPath())
 
@@ -507,4 +507,4 @@
 
 addWorkflowFactory(createERP5Workflow,
                    id='erp5_workflow',
-                   title='ERP5-style empty workflow')
+                   title='ERP5-style empty workflow')




More information about the Erp5-report mailing list