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 ): ...@@ -1815,7 +1815,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
# Type Casting # Type Casting
security.declarePrivate( '_getTypeBasedMethod' ) security.declarePrivate( '_getTypeBasedMethod' )
def _getTypeBasedMethod(self, method_id): def _getTypeBasedMethod(self, method_id, script_id=None):
""" """
Looks up for Looks up for
""" """
...@@ -1843,7 +1843,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): ...@@ -1843,7 +1843,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
This method tries to convert the current Document into a predicate This method tries to convert the current Document into a predicate
looking up methods named Class_asPredictae, MetaType_asPredicate, PortalType_asPredicate 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: if script is not None:
return = script() return = script()
return None return None
......
...@@ -337,7 +337,7 @@ class XMLMatrix(Folder): ...@@ -337,7 +337,7 @@ class XMLMatrix(Folder):
asCellRange scripts should be unified if possible asCellRange scripts should be unified if possible
""" """
script = self._getTypeBasedMethod('asCellRange') 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)
except UnboundLocalError: 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