Commit fab281db authored by Jérome Perrin's avatar Jérome Perrin

revive DeliveryLine.isDivergent, it exists here because it also checks that

delivery cells are divergent. Update the docstrings to make it explicit


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44355 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c09e9e75
...@@ -367,10 +367,17 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, ImmobilisationMovement): ...@@ -367,10 +367,17 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, ImmobilisationMovement):
# divergence support with solving # 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') security.declareProtected(Permissions.AccessContentsInformation, 'getDivergenceList')
def getDivergenceList(self): def getDivergenceList(self):
""" """Returns a list of messages that contains the divergences for that line
Return a list of messages that contains the divergences and the cells it may contain.
""" """
divergence_list = [] divergence_list = []
if self.hasCellContent(): if self.hasCellContent():
......
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