Commit 6531bb64 authored by Sebastien Robin's avatar Sebastien Robin

added hasCellContent


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3101 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 961b6272
......@@ -187,6 +187,13 @@ class SupplyLine(DeliveryLine, Path):
"""
return self._getDefaultTotalPrice(self.asContext(context=context, REQUEST=REQUEST, **kw))
security.declareProtected( Permissions.ModifyPortalContent, 'hasCellContent' )
def hasCellContent(self, base_id='path'):
"""
This method can be overriden
"""
return int(XMLMatrix.getCellRange(self, base_id=base_id) != [])
# For generation of matrix lines
security.declareProtected( Permissions.ModifyPortalContent, '_setQuantityStepList' )
def _setQuantityStepList(self, value):
......
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