On Wednesday 09 January 2008 18:08:00 Emmanuel Blot wrote: > > Thanks - I had looked at the code already. My problem is I don't want > > an email submission process, I want to create a new ticket from a > > command line. I tried to look into the code, but I am not a Python > > programmer (yes, I can learn it) and am not familiar with the internal > > Trac APIs (which I assume are documented somewhere). > > If you know a language that can execute XMLRPC remote command (Perl, > for example), you could use the XmlRpcPlugin to create a ticket with a > very simple API.
Errm... why bother, can't you just post newticket with e.g. curl? Alan, if you use Postgres for backend, you can inject your tickets directly into DB using anything from Java to psql shell. With the default sqlite engine, you're limited (AFAIK) to C API or sqlite3 shell. It looks like to create new ticket you only really need to insert a row into ticket table, so something like sqlite3 'mytrac.db' 'insert into ticket ...' should do the trick. (Disclaimer: ICBW, I haven't tried this myself.) Dima -- Dimitri Maziuk Programmer/sysadmin BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
