Aurelien Bompard wrote: > I need to copy the images in the ODT file (which is basically a zip file), > and for that I've thought about two ways : > 1. just download the file by making an HTTP request > 2. ask Trac for the real file path and copy it
If the images are attachments to e.g. a wiki page, have a look at the Attachment class in: http://trac.edgewall.org/browser/trunk/trac/attachment.py In particular, the .path property should be exactly what you asked for. You could also use the .open() method to open the file and copy its content. It gets more difficult if images are not necessarily attachments. In that case, an HTTP request may be the easiest solution. -- Remy
signature.asc
Description: OpenPGP digital signature
