Hi Christian!

Christian Heimes wrote:
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:

[patch]

Same in workflow and discussion tool.

Any objections?

Please make yourself familiar with these changes:

http://mail.zope.org/pipermail/zope-cmf/2003-November/019801.html

_listActionInfos() is just a fallback and never called for action providers that implement 'interfaces.portal_actions.ActionProvider'. All tools subclassing CMF tools or ActionProviderBase implement this interface.

ActionProviderBase depends on getExprContext, not on getOAI. AFAIK 'OAI' means 'old ActionInformation' and is deprecated since CMF 1.3. But DCWorkflow still depends on it, so there are no deprecation warnings.


I guess you have to modify getExprContext *and* getOAI for Plone.

Cheers,

        Yuppie

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to