Hi!

I want to get the location about created object through event
notifications, but there is never enough context (there  is "Not enough
context to determine location root", ...)

  <subscriber
    handler=".objectevents.objectCreated"
    for="zope.app.event.interfaces.IObjectCreatedEvent"
    trusted="True"
  />


def objectCreated(event):
    """event handler
    """
    object = event.object

    locatable = IPhysicallyLocatable(object, None)
    if locatable is not None:
        path = locatable.getPath()
     ....

What is missing?

/JM

_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to