[Erp5-report] r44355 jerome - /erp5/trunk/products/ERP5/Document/DeliveryLine.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 16 14:41:30 CET 2011


Author: jerome
Date: Wed Mar 16 14:41:30 2011
New Revision: 44355

URL: http://svn.erp5.org?rev=44355&view=rev
Log:
revive DeliveryLine.isDivergent, it exists here because it also checks that
delivery cells are divergent. Update the docstrings to make it explicit

Modified:
    erp5/trunk/products/ERP5/Document/DeliveryLine.py

Modified: erp5/trunk/products/ERP5/Document/DeliveryLine.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/DeliveryLine.py?rev=44355&r1=44354&r2=44355&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/DeliveryLine.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/DeliveryLine.py [utf8] Wed Mar 16 14:41:30 2011
@@ -367,10 +367,17 @@ class DeliveryLine(Movement, XMLObject, 
 
 # divergence support with solving
 
+    security.declareProtected(Permissions.AccessContentsInformation, 'isDivergent')
+    def isDivergent(self):
+      """Returns true if the delivery line is divergent, or if any contained
+      cell is divergent.
+      """
+      return bool(self.getDivergenceList())
+
     security.declareProtected(Permissions.AccessContentsInformation, 'getDivergenceList')
     def getDivergenceList(self):
-      """
-      Return a list of messages that contains the divergences
+      """Returns a list of messages that contains the divergences for that line
+      and the cells it may contain.
       """
       divergence_list = []
       if self.hasCellContent():



More information about the Erp5-report mailing list