I have a folderish content-type that accepts other 'Folder' objects as subjects. I need to attach folder restrictions to newly created Folders . In side a handler for IObjectCreatedEvent I can get hold of the related folder instance however the folder instance is not acquisition-wrapped or not finally constructed in order get hold of the parent for performing some further checks. Is there a different way hooking into the Dexterity content-type creation cycle?
In corner cases where I have been unable to use IObjectAddedEvent, IIRC, I have resorted in IObjectCreatedEvent subscribers to obtaining the parent folder from the request object, obtained via zope.globalrequest.getRequest(). This is not pretty; it is a last resort for peculiar situations.