I'm playing with a INotificationSubscriber plugin to generate notifications 
(I'll have quite a complex system to decide which notifications go to which 
people depending an all sorts of things about the content of the ticket).

One thing I want to do is be able to tell the difference between when a 
change (typically an added comment) comes in through the XMLRPC interface 
and when it's something the user has done in the browser.

I have thought of doing this by adding another action to the workflow that 
behaves like "leave" but has a different name, the idea being that I can 
then decide what to do in my INotificationSubscriber plugin by looking at 
the action. But I can't find out how my matches() gets told what the action 
is.

So:

(1) Does matches() get told what the action is, and if so where/how?

(2) If not, how else can I tell in the INotificationSubscriber plugin where 
the change came from? (I can, I think, do anything I like to the system, 
including eg adding custom fields.)

(3) If it's completely impossible to achieve what I want 
with INotificationSubscriber what else should I be looking at?

[Note: I've had to hack the XMLRPC plugin to make it work at all with the 
new notification system, see Trac Hacks ticket #13263, so there might be 
possibilities around adding an extra field to the event I'm creating in the 
ticket.update() handler, but I'd rather avoid that sort of muckiness if I 
can as that won't survive the XMLRPC plugin getting fixed properly.]

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to