The current code in CMF calls the function getOAI(context=self, object=object) from the ActionInformation module.
I would like to alter the call a little bit to make it easier for us to customize the call:
===================================================================
RCS file: /cvs-repository/Products/CMFCore/ActionsTool.py,v
retrieving revision 1.51.2.1
diff -u -r1.51.2.1 ActionsTool.py
--- CMFCore/ActionsTool.py 11 Apr 2005 10:43:11 -0000 1.51.2.1
+++ CMFCore/ActionsTool.py 17 Jun 2005 18:42:54 -0000
@@ -197,7 +197,7 @@
'portal_actions will ignore listActions() of \'%s\'.'
% provider.getId(),
DeprecationWarning)
- info = getOAI(self, object)
+ info = self._getOAI(self, object)
actions = provider.listActions(info)
action_infos = []
@@ -252,5 +252,8 @@
continue
action_infos.append(i)
return action_infos
+
+ def _getOAI(self, context, object):
+ return getOAI(context, object)
InitializeClass(ActionsTool)
Same in workflow and discussion tool.
Any objections?
Christian
_______________________________________________
Zope-CMF maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zope-cmf
See http://collector.zope.org/CMF for bug reports and feature requests
