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.
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers