[Zope-CMF] Another small plone related change
Christian Heimes
christian at cheimes.de
Fri Jun 17 14:44:05 EDT 2005
I'm asking for another small change in CMF 1.5. For Plone's portal
factory and temporary folder we have to bend the
ActionInformation.getOAI method a little bit.
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
More information about the Zope-CMF
mailing list