diff --git a/product/ERP5/Tool/TaskDistributionTool.py b/product/ERP5/Tool/TaskDistributionTool.py index f51a40a84b8306af1dbc56ce048ed50b126221a0..1b980a07650ef1a00681df944aa27684718abddf 100644 --- a/product/ERP5/Tool/TaskDistributionTool.py +++ b/product/ERP5/Tool/TaskDistributionTool.py @@ -275,3 +275,12 @@ class TaskDistributionTool(BaseTool): portal = self.getPortalObject() test_result = portal.restrictedTraverse(test_result_path) return test_result.getSimulationState() == "started" and 1 or 0 + + security.declareObjectProtected(Permissions.AccessContentsInformation) + def getMemcachedDict(self): + """ Return a dictionary used for non persistent data related to distribution + """ + portal = self.getPortalObject() + memcached_dict = portal.portal_memcached.getMemcachedDict( + "task_distribution", "default_memcached_plugin") + return memcached_dict