[Product-Developers] IObjectModifiedEvent, object modified or added?
Imran Azad
imran.azad at bradfordhospitals.nhs.uk
Thu Jul 28 20:17:13 UTC 2011
Hi Gilles,
Thanks for that, that's quite an interesting implementation, in the end I
decided to do it like so:
@grok.subscribe(IPerson, IObjectModifiedEvent)
def rename(person, event):
id = person.getId()
parent = person.aq_parent
if not hasattr(person, 'newName'):
parent.manage_renameObject(id, id + "-old")
What do you think? I kind feel like it's a hack, makes me feel very
uncomfortable.
--
View this message in context: http://plone.293351.n2.nabble.com/IObjectModifiedEvent-object-modified-or-added-tp6630019p6631212.html
Sent from the Product Developers mailing list archive at Nabble.com.
More information about the Product-Developers
mailing list