Andreas Petermann, on 2009-03-19:
> Hi list,
>
> I have the following problem in handling ContainerModifiedEvents. I am 
> working on a special folder content, which should react on 
> ContainerModifiedEvents from a reference folder object. When a new page 
> for example will be added to the reference folder I get two 
> ContainerModifiedEvents. The first seems to be the one for actually 
> creation and the second occures after renaming. How it is possible to 
> distinguish between them withount counting the events?
>
> The same problem occurs on deleting items from the reference folder. 
> Here I have tried to find out the current step via contentItems() 
> without no luck.

I don't know if the ContainerModifiedEvent has enough info for this,
but in ObjectMovedEvents you have event.oldParent and
event.newParent.  Maybe the notes I made here help:

https://svn.plone.org/svn/collective/xm.booking/trunk/xm/booking/timing/events.py


-- 
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to