[Zope3-dev] ObjectCreatedEvent handlers and local permissions

Garrett Smith garrett at mojave-corp.com
Sat Feb 12 11:33:05 EST 2005


I have a handler for an object created event and I need local
permissions to apply, but since the newly created object has no parent,
only the global permissions are used.

This makes sense since the new object has no location and thus we can't
use local permissions.

Is the solution to wrap the new object in a location proxy for its use
in a notify call:

  notify(ObjectCreatedEvent(LocationProxy(obj, parent, name)))

 -- Garrett


More information about the Zope3-dev mailing list