I found the solution myself.

In case someone else faces this problem:

change the else-clause in the getURL method in nuwiki.py to the
following:

            fqtitle = self.nshandler.get_fqname(name,
defaultns=defaultns)

            import hashlib
            import os.path

            part = fqtitle.partition(":")

            md5hash = hashlib.md5(part[2].replace(' ',
'_')).hexdigest()
            path = "%s%s%s" %(md5hash[0], os.path.sep, md5hash[0:2])

            return base_url + "images/" + path + "/" +
part[2].replace(' ', '_')

best regards,
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.

Reply via email to