[Product-Developers] Creation flag for Dexterity content object

Martin Aspeli optilude+lists at gmail.com
Fri Jul 29 15:02:29 UTC 2011

On 28 July 2011 22:14, Imran Azad <imran.azad at bradfordhospitals.nhs.uk> 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


More information about the Product-Developers mailing list