Florent,<br>
thanks for the thoughts... :)&nbsp; I'm using zope.app.workflow (the
X3.0 addon).&nbsp; IRelease is just a content object.&nbsp; I think,
just like you mentioned, that I can work my way around it by looking at
event.object...&nbsp; Just like you mentioned, and Jim mentioned
earlier, I think I was counting on a behavior that mirrored
IObjectEvent (like someMethod(obj, event) to be the subscribing
method).&nbsp; <br>
<br>
if I get it working using event.object instead of method(object,
event), I might look at hacking out a change, at least to see how far i
can get with it, to zope.app.workflow to redispatch, but I don't think
I understand the event dispatch machinery well enough yet to know if
it's within my grasp.&nbsp; a review of IObjectEvent is in order for me
;)<br>
<br>
Thanks much!<br>
Pete<br><br><div><span class="gmail_quote">On 10/5/05, <b class="gmail_sendername">Florent Guillaume</b> &lt;<a href="mailto:fg@nuxeo.com">fg@nuxeo.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>Pete Taylor wrote:<br>&gt; hi all... question for any event subscriber gurus (or just anyone who knows<br>&gt; more than me, which probably won't take much ;) )<br>&gt;<br>&gt; i have a set of actions that i would like to have trigger off of a
<br>&gt; particular state in a workflow. in my unittest i can see that the workflow<br>&gt; fires the event, but my subscriber doesn't pick up on it. similarly, the<br>&gt; subscriber i have in zcml in the application proper does not respond when
<br>&gt; the workflow transition event is fired.<br>&gt;<br>&gt; the functionality works if i explicitly call my subscription method against<br>&gt; the event, but that only proves that the functionality of the code isn't
<br>&gt; broken...<br>&gt;<br>&gt; the relevant zcml portion is as follows:<br>&gt; &lt;subscriber<br>&gt; for=&quot;qarelease.interfaces.IRelease<br>&gt; zope.app.workflow.stateful.interfaces.IAfterTransitionEvent&quot;<br>
&gt; factory=&quot;.release.notifyTransition&quot;<br>&gt; /&gt;<br>&gt;<br>&gt; the unittest subscribes with ztapi as follows:<br>&gt; ztapi.subscribe((IRelease, IAfterTransitionEvent), None, notifyTransition)<br><br>As Jim mentioned, and as I discovered yesterday :), the ability to subscribe
<br>using a multi-adapter is not &quot;stock&quot; behavior of the basic event<br>notification (which only sends one IEvent object), but actually behavior of<br>the IObjectEvents, which have a special subscriber re-dispatching on both
<br>event.object and event, so that the multi-adapter subscribers can work.<br><br>What workflow framework are you using ? And what's<br>qarelease.interfaces.IRelease ? Is it a transition or something else ?<br><br>That framework could be updated to do the same dance, if there's a clear
<br>&quot;object&quot; there. Or maybe some workflow event interfaces could be subclassed<br>from IObjectEvent.<br><br>Florent<br><br>--<br>Florent Guillaume, Nuxeo (Paris, France)&nbsp;&nbsp; CTO, Director of R&amp;D<br>+33 1 40 33 71 59&nbsp;&nbsp; 
<a href="http://nuxeo.com">http://nuxeo.com</a>&nbsp;&nbsp; <a href="mailto:fg@nuxeo.com">fg@nuxeo.com</a><br><br></blockquote></div><br>