Commit 71bd3b7c authored by Jérome Perrin's avatar Jérome Perrin

notifySimulationChange is not used. We have

simulation_movement_causality_interaction_workflow for this purpose.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29057 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5231b76b
......@@ -108,16 +108,7 @@ class AppliedRule(XMLObject):
rule = self.getSpecialiseValue()
if rule is not None:
if self.isRootAppliedRule():
# We should capture here a list of url/uids of deliveires to update
rule._v_notify_dict = {}
rule.expand(self,**kw)
# XXX This part must be done with a interaction workflow is needed.
# if self.isRootAppliedRule():
# self.activate(
# after_method_id=["immediateReindexObject",
# "recursiveImmediateReindexObject"]).\
# notifySimulationChange(rule._v_notify_dict)
# disable and clear cache
if not cache_enabled:
......@@ -255,18 +246,6 @@ class AppliedRule(XMLObject):
return self._getExplanationSpecialiseValue(
('Business Process',))
security.declareProtected(Permissions.ModifyPortalContent,
'notifySimulationChange')
def notifySimulationChange(self, notify_dict):
for delivery_url in notify_dict.keys():
delivery_value = self.getPortalObject().restrictedTraverse(delivery_url)
if delivery_value is None:
LOG("ERP5 WARNING", 0,
'Unable to access object %s to notify simulation change' %
delivery_url)
else:
delivery_value.notifySimulationChange()
def _isTreeDelivered(self):
"""
Checks if submovements of this applied rule (going down the complete
......
......@@ -659,15 +659,6 @@ class Delivery(XMLObject, ImmobilisationDelivery):
#if self.getSimulationState() in planned_order_state:
# self.updateAppliedRule() # This should be implemented with the interaction tool rather than with this hard coding
security.declareProtected(Permissions.ModifyPortalContent, 'notifySimulationChange')
def notifySimulationChange(self):
"""
WorkflowMethod used to notify the causality workflow that the simulation
has changed, so we have to check if the delivery is divergent or not
"""
pass
notifySimulationChange = WorkflowMethod(notifySimulationChange)
##########################################################################
# Applied Rule stuff
def updateAppliedRule(self, *args, **kw):
......
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