views:

102

answers:

1

I have a trac wiki page I'd like to update automatically on a regular basis (say, once an hour) with data fetched by a script.

I can get the script to generate the wiki markup.

How would you then upload that to the trac page? I want to replace the whole body of the page.

I would prefer a solution in python, as the rest of the stack (trac, fetching scripts) also use that. Just a pointer in the right direction should be enough ;)

+2  A: 

You can install the Trac XMLRPC plugin:

http://trac-hacks.org/wiki/XmlRpcPlugin

and then use the xmlrpc client library from the standard library. Then you'll be able to manipulate most aspects of Trac (tickets, wiki pages, etc) from a Python script.

fraca7
Thank you. Just what I need!
Daren Thomas