Commit 6d9bc752 authored by Sebastien Robin's avatar Sebastien Robin

added method updateCausalityState


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3879 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 09218c9c
...@@ -273,6 +273,17 @@ class Delivery(XMLObject): ...@@ -273,6 +273,17 @@ class Delivery(XMLObject):
return 1 return 1
return 0 return 0
def updateCausalityState(self,**kw):
"""
This is often called as an activity, it will check if the
deliver is convergent, and if so it will put the delivery
in a solved state, if not convergent in a diverged state
"""
if self.isDivergent():
self.diverge()
else:
self.converge()
####################################################### #######################################################
# Defer indexing process # Defer indexing process
def reindexObject(self, *k, **kw): def reindexObject(self, *k, **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