Sergio Talens-Oliag wrote: > El Wed, Dec 13, 2006 at 10:16:47PM -0800, Matt Good va escriure: > > > > mb wrote: > > > is it possible to create tickets via script (if possible without > > > python). > > > > > > Like so: wget http://TRACINSTALLATION/newticket?summary=Blah.... or > > > similar > > > > In keeping with good HTTP and REST principles Trac doesn't modify data > > on GET requests, only on POSTs. So, you can't use wget like that to > > create a ticket. You can use the XmlRpc plugin mentioned, or write a > > script in some other language to do a POST. > > > > You may also be able to use Twill, which is a mini scripting language > > for doing web requests: http://twill.idyll.org/ > > You can also use cURL <http://curl.haxx.se/> to build a shell script that > generates POST requests. It's a very useful tool for this kind of things.
Well, it's not just the POST, but Trac now also requires the POSTs to include a unique token generated when a form is requested. Since Twill acts like a browser you can request the form and repost it so that it contains the required token. -- Matt Good --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" 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-dev?hl=en -~----------~----~----~----~------~----~------~--~---
