Hi, I am using MediaWiki 1.15 with mwlib 0.12.12.
When I export Wikipages with images (png, jpg) as DocBook XML I get broken image links. The links in the exported XML file look like this: http://hostname/index.php?oldid=40 When I change the dbwriteImageLink method in the docbookwriter.py file from: imgsrc = self.environment.images.getURL(obj.target, obj.width or None) To: imgsrc = self.environment.images.getURL(obj.target) I get at least the wiki-page which describes the image: http://hostname/index.php?title=File:image.jpg But this is still not valid in DocBook XML, I need the direct link to the image on the server, for example: http://hostname/images/0/05/imagename.jpg Does anyone of you have an idea how I can get the complete path to the image on the server? The getURL method is in the nuwiki.py file. There the imagelinks are built. I tried and googled a lot ... without success. I really appreciate every tip! Thanks in advance, Michael -- You received this message because you are subscribed to the Google Groups "mwlib" 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/mwlib?hl=en.
