This one time, at band camp, Matthew Palmer wrote: >On Wed, Aug 16, 2006 at 11:12:57PM +1000, Jamie Wilkinson wrote: >> This one time, at band camp, Erik de Castro Lopo wrote: >> >Jamie Wilkinson wrote: >> > >> >> "%(action)s %(person)s with %(weapon)s" % dict(action='spray', >> >> person='erik', weapon='flamethrower') >> > >> >Is that your best shot???? >> >> I was busy cracking my skull open on what the boffins at bestpractical call >> a "REST interface" to request tracker, > >Ugh -- I need to deal with that same thing in the near future. Any tips for >minimising the pain and suffering? Or is it just a matter of stocking up on >the psychotropic drugs and diving in?
There's a RT::Client::REST perl module, which is useful only if you're using Perl of course :) (Though I have mentioned pyperl to some members of this list before...) I've basically cloned the contrib 'rt' CLI tool in Python, and using that to talk to the webservices interface. You can minimise pain and suffering if you don't want to do anything fancy, really. It goes about 80% of the way there, but once you start wanting to get certain bits of metadata you enter the realm of complex parsing algorithms and heuristics :( I'll happily give you a crash course in it if you front up the psychotropes though :-) _______________________________________________ coders mailing list coders@slug.org.au http://lists.slug.org.au/listinfo/coders