> Currently I have a adapter that subclasses OFS.SimpleItem.Item and > re-implements the raise_standardErrorMessage method with my line of > code that sends the event.
I have know idea what OFS is, but what you're describing isn't an adapter at all. I would try writing a real adapter like: class OFSToCallable(object): implements(ICallalable) # ICallable is a stub interface adapts(OFS.interfaces.IItem) def __init__(self, ctx): self.ctx = ctx def __call__(self, *p, **kw): try: self.ctx(*p, **kw) except Exception, e: # handle the exception and dispatch event here pass I'm just a zope dilettante, so take my advice with a grain of salt. -- \\\\\/\"/\\\\\\\\\\\ \\\\/ // //\/\\\\\\\ \\\/ \\// /\ \/\\\\ \\/ /\/ / /\/ /\ \\\ \/ / /\/ /\ /\\\ \\ / /\\\ /\\\ \\\\\/\ \/\\\\\/\\\\\/\\\\\\ d.p.s _______________________________________________ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users