[Erp5-report] r11938 - /erp5/trunk/products/ERP5Type/XMLMatrix.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 8 16:54:11 CET 2007
Author: seb
Date: Mon Jan 8 16:54:09 2007
New Revision: 11938
URL: http://svn.erp5.org?rev=11938&view=rev
Log:
do not assume that the parameter script_id still exists
Modified:
erp5/trunk/products/ERP5Type/XMLMatrix.py
Modified: erp5/trunk/products/ERP5Type/XMLMatrix.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/XMLMatrix.py?rev=11938&r1=11937&r2=11938&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLMatrix.py (original)
+++ erp5/trunk/products/ERP5Type/XMLMatrix.py Mon Jan 8 16:54:09 2007
@@ -327,7 +327,7 @@
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 @@
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 @@
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()
More information about the Erp5-report
mailing list