[Zope-CMF] Re: invokeFactory hook
darryl at altcontrol.nl
Wed Mar 31 07:45:38 EST 2004
Thanks. Grep'd and was enlightened.
On Wed, 2004-03-31 at 14:06, Raphael Ritz wrote:
> Darryl Cousins wrote:
> > Hello,
> > 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
> > product.
> 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
> > http://mail.zope.org/mailman/listinfo/zope-cmf
> > See http://collector.zope.org/CMF for bug reports and feature requests
> 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