Commit 1d4c303e authored by Romain Courteaud's avatar Romain Courteaud

Allow to pass keyword argument in several places.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4192 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7bd3c3ef
...@@ -324,7 +324,7 @@ class XMLMatrix(Folder): ...@@ -324,7 +324,7 @@ class XMLMatrix(Folder):
security.declareProtected(Permissions.ModifyPortalContent, security.declareProtected(Permissions.ModifyPortalContent,
'updateCellRange') 'updateCellRange')
def updateCellRange(self, base_id,script_id=None): def updateCellRange(self, base_id, script_id=None, **kw):
""" """
The asCellRange script if PT dependent The asCellRange script if PT dependent
whoch is not the case with this kind of code whoch is not the case with this kind of code
...@@ -339,7 +339,7 @@ class XMLMatrix(Folder): ...@@ -339,7 +339,7 @@ class XMLMatrix(Folder):
""" """
script = self._getTypeBasedMethod('asCellRange', script_id=script_id) script = self._getTypeBasedMethod('asCellRange', script_id=script_id)
try: try:
cell_range = script(base_id=base_id,matrixbox=0) cell_range = script(base_id=base_id, matrixbox=0, **kw)
except UnboundLocalError: except UnboundLocalError:
raise UnboundLocalError,\ raise UnboundLocalError,\
"Did not find cell range script for portal type: %r" %\ "Did not find cell range script for portal type: %r" %\
......
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