Awesome, just what I was looking for Thanks Noah!
PBH On 11/6/08 1:04 PM, "Noah Kantrowitz" <[EMAIL PROTECTED]> wrote: There computed on the fly from inside the chrome system. Look at how Chrome's dispatch request method works. --Noah On Oct 31, 2008, at 10:06 AM, paulbh wrote: > > Hi, > I'm trying to develop a plugin that renders some of my HTML to pdfs > using pisa. The trouble is it gets stuck when trying to render > images / css etc as it doesn't know how to resolve urls to a filepath. > > Pisa lets me register a callback to convert a url to a filepath, so my > question is: > > if I get a string like this: > /sampleTracEnvironment/chrome/site/logo.png > /sampleTracEnvironment/raw-attachment/ticket/1/%20Scroll%201.jpg > /sampleTracEnvironment/chrome/path/css/mycss.css > > how can I work out the filepath to these resources? > > Brand new to python and Trac Dev, so apologies if its a dumb question > > thx > > Paul > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
