Commit 22ca046b authored by Romain Courteaud's avatar Romain Courteaud

Only added some comments.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3481 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c011f208
...@@ -92,6 +92,7 @@ class TransformedResource(XMLObject, XMLMatrix, Amount): ...@@ -92,6 +92,7 @@ class TransformedResource(XMLObject, XMLMatrix, Amount):
security.declareProtected(Permissions.ModifyPortalContent, '_updateQMatrixCellRange') security.declareProtected(Permissions.ModifyPortalContent, '_updateQMatrixCellRange')
def _updateQMatrixCellRange(self): def _updateQMatrixCellRange(self):
# XXX use base_id parameter instead
cell_range = self.TransformedResource_asCellRange('quantity') cell_range = self.TransformedResource_asCellRange('quantity')
# XXX TransformedResource works only for a maximum of 3 variation base category... # XXX TransformedResource works only for a maximum of 3 variation base category...
# Matrixbox must be rewrite for a clean implementation of n base category # Matrixbox must be rewrite for a clean implementation of n base category
...@@ -107,6 +108,7 @@ class TransformedResource(XMLObject, XMLMatrix, Amount): ...@@ -107,6 +108,7 @@ class TransformedResource(XMLObject, XMLMatrix, Amount):
variate on variate on
""" """
self._baseSetQVariationBaseCategoryList(value) self._baseSetQVariationBaseCategoryList(value)
# XXX calling updatecellRange is better
self._updateQMatrixCellRange() self._updateQMatrixCellRange()
security.declareProtected(Permissions.ModifyPortalContent, 'setQVariationBaseCategoryList') security.declareProtected(Permissions.ModifyPortalContent, 'setQVariationBaseCategoryList')
...@@ -120,6 +122,7 @@ class TransformedResource(XMLObject, XMLMatrix, Amount): ...@@ -120,6 +122,7 @@ class TransformedResource(XMLObject, XMLMatrix, Amount):
security.declareProtected(Permissions.ModifyPortalContent, '_updateVMatrixCellRange') security.declareProtected(Permissions.ModifyPortalContent, '_updateVMatrixCellRange')
def _updateVMatrixCellRange(self): def _updateVMatrixCellRange(self):
# XXX use base_id parameter instead
cell_range = self.TransformedResource_asCellRange('variation') cell_range = self.TransformedResource_asCellRange('variation')
# XXX TransformedResource works only for a maximum of 3 variation base category... # XXX TransformedResource works only for a maximum of 3 variation base category...
# Matrixbox must be rewrite for a clean implementation of n base category # Matrixbox must be rewrite for a clean implementation of n base category
...@@ -135,6 +138,7 @@ class TransformedResource(XMLObject, XMLMatrix, Amount): ...@@ -135,6 +138,7 @@ class TransformedResource(XMLObject, XMLMatrix, Amount):
variate on variate on
""" """
self._baseSetVVariationBaseCategoryList(value) self._baseSetVVariationBaseCategoryList(value)
# XXX calling updatecellRange is better
self._updateVMatrixCellRange() self._updateVMatrixCellRange()
security.declareProtected(Permissions.ModifyPortalContent, 'setVVariationBaseCategoryList') security.declareProtected(Permissions.ModifyPortalContent, 'setVVariationBaseCategoryList')
......
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