Patches item #3509885, was opened at 2012-03-21 15:32 Message generated for change (Comment added) made by zeroj You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3509885...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Lars Aronsson (aronsson) Assigned to: Nobody/Anonymous (nobody) Summary: djvutext.py fails to retrieve namespace names (Index, Page)
Initial Comment: To get the names of the namespaces (Index and Page), the source code of djvutext.py uses two different methods, both wrong. This fails on sv.wikisource and ru.wikisource, making djvutext.py useless. At line 230, the index namespace is retrieved with Page(...).get() which fails if the page in MediaWiki: namespace doesn't exist. At line 123, the page namespace is retrieved with [104], assuming the namespace has this number, which it doesn't always have. The solution is to use site.mediawiki_message(...) instead, as this patch does.
----------------------------------------------------------------------
Comment By: John Vandenberg (zeroj) Date: 2012-03-21 15:50
Message: maybe the reason this fails now on fr.ws is that recently the page has been deleted https://fr.wikisource.org/wiki/MediaWiki:Proofreadpage_index_namespace
the patch looks good. ill apply it tonight
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3509885...
pywikipedia-bugs@lists.wikimedia.org