Commit 09b1d2e1 authored by Jérome Perrin's avatar Jérome Perrin

remove hasActivity that was depending on old implementation of reindexObject from simulation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6192 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 834427b9
...@@ -31,9 +31,9 @@ from Products.CMFCore.utils import getToolByName ...@@ -31,9 +31,9 @@ from Products.CMFCore.utils import getToolByName
from Products.CMFCore.WorkflowCore import WorkflowMethod from Products.CMFCore.WorkflowCore import WorkflowMethod
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type.PsycoWrapper import psyco
from zLOG import LOG from zLOG import LOG
import psyco
class AppliedRule(XMLObject): class AppliedRule(XMLObject):
""" """
...@@ -219,16 +219,6 @@ class AppliedRule(XMLObject): ...@@ -219,16 +219,6 @@ class AppliedRule(XMLObject):
result.extend(m.getMovementIndex()) result.extend(m.getMovementIndex())
return result return result
security.declareProtected(Permissions.View, 'hasActivity')
def hasActivity(self, **kw):
"""
We reindex the whole applied rule
"""
if self.isRootAppliedRule():
XMLObject.hasActivity(self, **kw)
else:
self.getRootAppliedRule().hasActivity(**kw) # Reindex the whole applied rule
security.declareProtected(Permissions.View, 'isRootAppliedRule') security.declareProtected(Permissions.View, 'isRootAppliedRule')
def isRootAppliedRule(self): def isRootAppliedRule(self):
""" """
......
...@@ -288,13 +288,6 @@ class SimulationMovement(Movement): ...@@ -288,13 +288,6 @@ class SimulationMovement(Movement):
result.extend(m.getMovementIndex()) result.extend(m.getMovementIndex())
return result return result
security.declareProtected(Permissions.View, 'hasActivity')
def hasActivity(self, **kw):
"""
We reindex the whole applied rule
"""
return self.getRootAppliedRule().hasActivity(**kw)
security.declareProtected( Permissions.AccessContentsInformation, security.declareProtected( Permissions.AccessContentsInformation,
'getExplanation') 'getExplanation')
def getExplanation(self): def getExplanation(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment