[Zope-CMF] Re: invokeFactory hook

Raphael Ritz r.ritz at biologie.hu-berlin.de
Wed Mar 31 07:06:35 EST 2004



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.

Raphael

> 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
> 





More information about the Zope-CMF mailing list