On Tuesday, 13 Dec 2011, 09:11:33 noamtm wrote:
> I want to write a Python script that accesses Trac through its API.
> Specifically, I want to send users a daily email with ticket changes
> (similar to what they would get by visiting /timeline?
> daysback=1&ticket=on&milestone=on).

The XmlRpc Plugin is the appropriate way for this. The
getRecentChanges() method (the XMLRPC interface is described via Web
frontent of Trac) gives numbers oft new tickets - mind that UTC time is
taken as argument. Don't forget to allow XMLRPC for the user which runs
the Python script ...

... and one more remark:

When you only add an attachment, at least in Trac 0.11.7 the
modification time does not change, so getRecentChanges() does not list
this ticket (if an comment is added or some field changes, anything is
fine). I don't know whether this is the case for Trac 0.12, too; in the
next time I will look and possibly try to fix this problem.

Greetings,

Reinhard

-- 
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