Commit d19561ee authored by Sebastien Robin's avatar Sebastien Robin

do not assume that the parameter script_id still exists

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11938 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 27070c7e
...@@ -327,7 +327,7 @@ class XMLMatrix(Folder): ...@@ -327,7 +327,7 @@ class XMLMatrix(Folder):
security.declareProtected(Permissions.ModifyPortalContent, security.declareProtected(Permissions.ModifyPortalContent,
'_updateCellRange') '_updateCellRange')
def _updateCellRange(self, base_id, script_id=None, **kw): def _updateCellRange(self, base_id, **kw):
""" """
The asCellRange script is Portal Type dependent The asCellRange script is Portal Type dependent
which is not the case with this kind of code which is not the case with this kind of code
...@@ -340,7 +340,7 @@ class XMLMatrix(Folder): ...@@ -340,7 +340,7 @@ class XMLMatrix(Folder):
asCellRange scripts should be unified if possible asCellRange scripts should be unified if possible
""" """
script = self._getTypeBasedMethod('asCellRange', script_id=script_id) script = self._getTypeBasedMethod('asCellRange', **kw)
try: try:
cell_range = script(base_id=base_id, matrixbox=0, **kw) cell_range = script(base_id=base_id, matrixbox=0, **kw)
except UnboundLocalError: except UnboundLocalError:
...@@ -351,9 +351,9 @@ class XMLMatrix(Folder): ...@@ -351,9 +351,9 @@ class XMLMatrix(Folder):
security.declareProtected(Permissions.ModifyPortalContent, security.declareProtected(Permissions.ModifyPortalContent,
'updateCellRange') 'updateCellRange')
def updateCellRange(self, base_id='cell', script_id=None, **kw): def updateCellRange(self, base_id='cell', **kw):
""" same as _updateCellRange, but reindex the object. """ """ same as _updateCellRange, but reindex the object. """
self._updateCellRange(base_id=base_id, script_id=script_id, **kw) self._updateCellRange(base_id=base_id, **kw)
self.reindexObject() self.reindexObject()
......
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