From c0663561a4ca2f3c36881c19066feeff70bb5c51 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Wed, 28 Sep 2005 14:12:37 +0000 Subject: [PATCH] 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 --- product/ERP5/Document/Delivery.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/product/ERP5/Document/Delivery.py b/product/ERP5/Document/Delivery.py index 0d6e8d1037..f81aa6cdbf 100755 --- a/product/ERP5/Document/Delivery.py +++ b/product/ERP5/Document/Delivery.py @@ -279,10 +279,11 @@ class Delivery(XMLObject): 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() + if hasattr(self,'diverge') and hasattr(self,'converge'): + if self.isDivergent(): + self.diverge() + else: + self.converge() ####################################################### # Defer indexing process -- 2.30.9