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

This is very bad advice. Never go behind the back of software unless you
have no option. We provide a very rich Python API for local use, and an
XML-RPC system for non-Python or non-local scripting. All the common
languages will have at least one library for XML-RPC (Perl looks to have a
few dozen), so you have no excuse to not use it.

--Noah


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to