Daren Thomas
Daren Thomas

Reputation: 70314

How to automate updating a trac wiki page?

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

Upvotes: 1

Views: 1394

Answers (3)

Fredrik Wendt
Fredrik Wendt

Reputation: 1128

I had a hard time getting the XmlRpcPlugin to work, details in the trac ticket: http://trac-hacks.org/ticket/6035#comment:7

Upvotes: 0

fraca7
fraca7

Reputation: 1188

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.

Upvotes: 3

Related Questions