Commit 3269946e authored by Yoshinori Okuji's avatar Yoshinori Okuji

Note that getCellRange can return None.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3091 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ad9767f8
...@@ -156,7 +156,8 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated): ...@@ -156,7 +156,8 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated):
# But, getVariationText of the line was not empty. # But, getVariationText of the line was not empty.
# So, in ZODB, resource as without variation, but in catalog, this was # So, in ZODB, resource as without variation, but in catalog, this was
# the contrary... # the contrary...
return int(XMLMatrix.getCellRange(self, base_id=base_id) != []) cell_range = XMLMatrix.getCellRange(self, base_id=base_id)
return (cell_range is not None and len(cell_range) > 0)
security.declareProtected( Permissions.AccessContentsInformation, 'getCellValueList' ) security.declareProtected( Permissions.AccessContentsInformation, 'getCellValueList' )
def getCellValueList(self, base_id='movement'): def getCellValueList(self, base_id='movement'):
......
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