Emmanuel Blot wrote:
> Have a look at the contrib/trac-post-commit-hook script, which does
> something similar:
>
>   ticket = Ticket(self.env, tkt_id)
>   ticket['status'] = 'closed'
>   ticket['resolution'] = 'fixed'
>   ticket.save_changes(self.author, self.msg, self.now)
>   tn = TicketNotifyEmail(self.env)
>   tn.notify(ticket, newticket=0, modtime=self.now)
>
> Do you call the 'notify' method once you've committed the change to the 
> ticket ?
> Is there any debug info in the log file?
>   
I don't "do" anything.  I am just using the XMLRPC interface by calling 
ticket.update(...).  It is possible that there is a bug in the 
implementation of the XMLRPC plugin and it is not calling the correct 
followup methods.  I don't know anything about that code though.  I was 
hoping there may be someone on the list that has worked with the XMLRPC 
plugin code and could tell me how to fix it.

-Allen

> HTH,
> Manu
>
> On 2/1/07, Allen Bierbaum <[EMAIL PROTECTED]> wrote:
>   
>> I have been writing a GUI to connect to trac using XMLRPC.  It is all up
>> and running now but I seem to have problems with notification.
>>
>> When I use the XMLRPC interface to make a change to a ticket, it changes
>> the ticket correctly, but it does not trigger the associated
>> notification code to be called.
>>
>> Can anyone point me in the right direction to fix this?
>>
>> I am using the head of the 0.10-stable branch right now.
>>
>> -Allen
>>
>>     
>
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to