[Zope-CMF] How do you add an action in python code?
y.2010 at wcm-solutions.de
Fri Jun 18 04:35:36 EDT 2010
Suresh V. wrote:
> I have been looking at the Action* related code and have not been able
> to figure it out completely.
> I tried portal_actions.addAction(...) but this adds it under the
> "Actions" tab with the big RED deprecation warning.
> I am able to add it from the ZMI correctly, but can't trace the code
> that does the real adding (Ended up getting lost in GenericSetup browser
> Can someone give me a pointer?
There is no special API. ActionCategory inherits from OFS.OrderedFolder,
you can use the _setObject method.
More information about the Zope-CMF