hi all... question for any event subscriber gurus (or just anyone
who knows more than me, which probably won't take much ;) )<br>
<br>
i have a set of actions that i would like to have trigger off of a
particular state in a workflow. in my unittest i can see that the
workflow fires the event, but my subscriber doesn't pick up on
it. similarly, the subscriber i have in zcml in the application
proper does not respond when the workflow transition event is
fired. <br>
<br>
the functionality works if i explicitly call my subscription method
against the event, but that only proves that the functionality of the
code isn't broken... <br>
<br>
the relevant zcml portion is as follows:<br>
<subscriber<br>
for="qarelease.interfaces.IRelease <br>
zope.app.workflow.stateful.interfaces.IAfterTransitionEvent"<br>
factory=".release.notifyTransition"<br>
/><br>
<br>
the unittest subscribes with ztapi as follows:<br>
ztapi.subscribe((IRelease, IAfterTransitionEvent), None, notifyTransition)<br>
<br>
this seems, from both srichter's book and philiKON's book to be the
right way to do this (moving from ztapi.handle to ztapi.subscribe since
handle is being deprecated). <br>
<br>
does anyone have any experience in attempting to do anything like this?<br>
<br>