[Product-Developers] Re: Calling a function on the addition of content to a folderish type

Raphael Ritz r.ritz at biologie.hu-berlin.de
Mon Jan 28 07:38:36 UTC 2008


Jon Stahl wrote:
> swank wrote:
>> Hello,
>> I need to execute some code whenever a new file is added to my folderish
>> content type.  I was looking through the methods that are available 
>> from the
>> folder.ATFolder superclass that I might be able to override, but I'm 
>> having
>> a difficult time finding one that might get called upon the addition of a
>> file to the folder.
>>
>> My questions are:  does such a method exist?
>>                             if not, is there another way for my code 
>> to get
>> executed?
>>
>> Thanks
>> Craig Swank
>>   
> If you're using Plone 3, you'd want to look at the Content Rules subsystem.
> 

Alternatively - and more low-level, you may want to provide your
own subscriber to the 'ObjectAdded' event.

Raphael


> best,
> jon





More information about the Product-Developers mailing list