Commit c0663561 authored by Sebastien Robin's avatar Sebastien Robin

do not assume there is always a solve and diverge method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3897 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1e684a2e
...@@ -279,10 +279,11 @@ class Delivery(XMLObject): ...@@ -279,10 +279,11 @@ class Delivery(XMLObject):
deliver is convergent, and if so it will put the delivery deliver is convergent, and if so it will put the delivery
in a solved state, if not convergent in a diverged state in a solved state, if not convergent in a diverged state
""" """
if self.isDivergent(): if hasattr(self,'diverge') and hasattr(self,'converge'):
self.diverge() if self.isDivergent():
else: self.diverge()
self.converge() else:
self.converge()
####################################################### #######################################################
# Defer indexing process # Defer indexing process
......
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