On Mon, Dec 12, 2011 at 2:21 AM, <[email protected]> wrote:
> Hi > > I'm looking at writing a python script that will update a custom field > in our Trac tickets using information about our reviews on Review > Board. > I was planning on using a SQL script to edit the database, but I > wanted to know if there was a better way of doing it. I'd prefer to > have it as a script than as a plugin as that means that I can run one > program to get the information of Review Board and then upload it to > Trac. > However, I can't any good examples of scripts used to edit the Trac > database, and tickets in particular, and was hoping that someone would > either have example code or advice on how to achieve my goals. > Also, does anyone know how accurate this database visualisation is > (http://trac.edgewall.org/attachment/wiki/TracDev/DatabaseSchema/ > db_trac_eng_final.png), and where our custom field would appear in it? > We are using Trac 0.12.2. > > Thanks > Scott > Hi Scott, It's not recommended to modify the Trac DB directly from "outside". I think that for your purpose you should take a look at the Trac XML RPC Plugin [1]. - Itamar. [1] http://trac-hacks.org/wiki/XmlRpcPlugin > > -- > 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. > > -- 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.
