8
votes

I know there is xmlrpc plugin for trac. But I is not my trac site nor do I have admin rights. I just have a normal user account with limited priviledges.

Beside the obvious low level of doing things (submitting requests by emulating web browser), is there a better way to do this?

I'm interested mainly in these:

  • View wiki page
  • Edit wiki page
  • Submit new ticket
  • View Ticket
  • Add comment to ticket
3

3 Answers

3
votes

If you look at the "functional testing" in the Trac source, you'll find that we have code that exercises Trac using twill. You might find that to be a useful starting point for doing this sort of thing.

2
votes

Trac does not provide an API by default. You might install the XmlRpcPlugin. Trac then provides anonymous and authenticated access to an API via two protocols: XML-RPC and JSON-RPC.

A helper library for easier access is https://github.com/jakoch/PHPTracRPC

0
votes

Seems the only way to do this would be to emulate browser.