With Groovy and the XML-RPC library (groovy.codehaus.org/XMLRPC) the access to Trac gets extremely easy. The older version 0.4 and 0.5 of the library could not handle basic authorization but thanks to Tim fixing the missing feature and some other xml format error, you can now access any Trac Wikipage with as little as 3 lines of Groovy code.
Remark:
At the time of this entry version 0.6 is not released yet. Check for availability at repository.codehaus.org/org/codehaus/groovy/groovy-xmlrpc/ for the new version or update your svn copy and build by yourself (see blog entry)
Update 2010-02-01: The new version was released as 0.5.1 (link)




[...] The goal is a Trac NB plugin implemented in Groovy. Before the Groovy library was finally fixed (see my blog post) I tried to use Python (or better Jython) embedded in regular Javacode foloowing the JSR 223 [...]Pingback by Accessing Trac with Python from inside a Java application « The JavaDude Weblog — January 16, 2010 @ 5:56 pm