[Zope-CMF] Re: invokeFactory hook
r.ritz at biologie.hu-berlin.de
Wed Mar 31 07:06:35 EST 2004
Darryl Cousins wrote:
> I have created my first CMF Products. One of which is a subclass of
> PortalFolder and another subclassing Document.
> How do I invoke extra methods when adding or copy/pasting objects in the
> folder_contents view of my PortalFolder subclass. I have traced
> invokeFactory to 'manage_addProduct' and 'manage_addClone' but I'm
> honestly getting a bit lost.
> In my PortalFolder subclass, for example, I want the new or copied
> object to be registered with an ordering manager (a list) within my
First of all there is support for an 'OrderedFolder' out-of-the-box
(meaning that you could subclass from).
But to your question: look for the 'manage_afterAdd',
'manage_afterClone', and 'manage_beforeDelete' hooks.
> Thanks and best regards,
> Darryl Cousins
> Zope-CMF maillist - Zope-CMF at zope.org
> See http://collector.zope.org/CMF for bug reports and feature requests
More information about the Zope-CMF