Commit aea5d22e authored by Jean-Paul Smets's avatar Jean-Paul Smets

added missing script_id param


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3525 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ff38b50a
......@@ -1815,7 +1815,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
# Type Casting
security.declarePrivate( '_getTypeBasedMethod' )
def _getTypeBasedMethod(self, method_id):
def _getTypeBasedMethod(self, method_id, script_id=None):
"""
Looks up for
"""
......@@ -1843,7 +1843,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
This method tries to convert the current Document into a predicate
looking up methods named Class_asPredictae, MetaType_asPredicate, PortalType_asPredicate
"""
script = self._getTypeBasedMethod('asPredicate')
script = self._getTypeBasedMethod('asPredicate', script_id=script_id)
if script is not None:
return = script()
return None
......
......@@ -337,7 +337,7 @@ class XMLMatrix(Folder):
asCellRange scripts should be unified if possible
"""
script = self._getTypeBasedMethod('asCellRange')
script = self._getTypeBasedMethod('asCellRange', script_id=script_id)
try:
cell_range = script(base_id=base_id,matrixbox=0)
except UnboundLocalError:
......
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