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):
security.declareProtected(Permissions.ModifyPortalContent,
'_updateCellRange')
def _updateCellRange(self, base_id, script_id=None, **kw):
def _updateCellRange(self, base_id, **kw):
"""
The asCellRange script is Portal Type dependent
which is not the case with this kind of code
......@@ -340,7 +340,7 @@ class XMLMatrix(Folder):
asCellRange scripts should be unified if possible
"""
script = self._getTypeBasedMethod('asCellRange', script_id=script_id)
script = self._getTypeBasedMethod('asCellRange', **kw)
try:
cell_range = script(base_id=base_id, matrixbox=0, **kw)
except UnboundLocalError:
......@@ -351,9 +351,9 @@ class XMLMatrix(Folder):
security.declareProtected(Permissions.ModifyPortalContent,
'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. """
self._updateCellRange(base_id=base_id, script_id=script_id, **kw)
self._updateCellRange(base_id=base_id, **kw)
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