On 28 July 2011 22:14, Imran Azad <[email protected]> wrote:
> Hi David,
>
> Thanks for the response. I'm sorry I've ended up creating two posts that are
> asking more or less the same thing:
> http://plone.293351.n2.nabble.com/IObjectModifiedEvent-object-modified-or-added-td6630019.html
>
> I'm trying to work out whether an object has either been created or just
> modified. I was hoping if I create a topic based on the creation flag more
> people would relate to it as there is a creation flag for AT content
> objects.
>
> Once again everyone, sorry for the nuisance.

You don't need one in Dexterity. IObjectModified is only fired on
modification. On creation, you can listen for IObjectAddedEvent (after
attachment to a folder) or IObjectCreatedEvent (before, no acquisition
context).

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

Reply via email to