Commit dc109e08 authored by Romain Courteaud's avatar Romain Courteaud

Use updateCellRange in order to generate the matrix.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3490 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1e3af89d
......@@ -60,16 +60,6 @@ class Consumption(XMLObject, XMLMatrix, Variated):
# , PropertySheet.Consumption
)
security.declareProtected(Permissions.ModifyPortalContent, '_setMatrixCellRange')
def _setMatrixCellRange(self):
"""
Set consumption matrix set range
"""
lines, columns, tab = self.Consumption_asCellRange()
#self.setCellRange(lines, columns, base_id='quantity')
self.setCellRange(lines, base_id='quantity')
security.declareProtected(Permissions.ModifyPortalContent, '_setVariationCategoryList')
def _setVariationCategoryList(self,value):
"""
......@@ -79,7 +69,9 @@ class Consumption(XMLObject, XMLMatrix, Variated):
self._setCategoryMembership(self.getVariationRangeBaseCategoryList(),value,base=1)
# XXX Must use in futur this method, but it failed today
#Variated._setVariationCategoryList(self, value)
self._setMatrixCellRange()
# XXX FIXME: Use a interaction workflow instead
# Kept for compatibility.
self.updateCellRange(base_id='quantity')
security.declareProtected(Permissions.ModifyPortalContent, 'setVariationCategoryList')
def setVariationCategoryList(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