From 98b9c5b8c7d87c5de7c28fed0c25ee641574e7b0 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Wed, 11 Nov 2009 16:34:01 +0000
Subject: [PATCH] Added to support legacy ISimulationMovement interface.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30508 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/interfaces/divergence_controller.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/interfaces/divergence_controller.py b/product/ERP5/interfaces/divergence_controller.py
index ad560371c8..799ecd24de 100644
--- a/product/ERP5/interfaces/divergence_controller.py
+++ b/product/ERP5/interfaces/divergence_controller.py
@@ -51,7 +51,16 @@ class IDivergenceController(Interface):
   def isDivergent(self, movement=None):
     """
     Returns True if any of the movements provided 
-    in delivery_or_movement is divergent.
+    in delivery_or_movement is divergent. Else return False.
+
+    movement -- a movement, a delivery, a simulation movement,
+                or a list thereof
+    """
+
+  def isConvergent(self, movement=None):
+    """
+    Returns False if any of the movements provided 
+    in delivery_or_movement is divergent. Else return True.
 
     movement -- a movement, a delivery, a simulation movement,
                 or a list thereof
-- 
2.30.9