Revision: 5584 Author: nicdumz Date: 2008-06-16 16:18:43 +0000 (Mon, 16 Jun 2008)
Log Message: ----------- Small bugfix with prefixindex : -prefixindex:namespace: was raising a ServerError :
python pagegenerators.py -prefixindex:User: Checked for running processes. 1 processes currently running, including the current process. Retrieving Allpages special page for wikipedia:fr from , namespace 2 Traceback (most recent call last): File "pagegenerators.py", line 979, in <module> for page in gen: File "pagegenerators.py", line 688, in DuplicateFilterPageGenerator for page in generator: File "pagegenerators.py", line 249, in PrefixingPageGenerator for page in site.prefixindex(prefix = title, namespace = namespace, includeredirects = includeredirects): File "/home/nico/projets/pywikipedia/wikipedia.py", line 5078, in prefixindex for page in self.allpages(start = prefix, namespace = namespace, includeredirects = includeredirects): File "/home/nico/projets/pywikipedia/wikipedia.py", line 5005, in allpages "Couldn't extract allpages special page. Make sure you're using MonoBook skin.") wikipedia.ServerError: Couldn't extract allpages special page. Make sure you're using MonoBook skin.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-06-16 16:07:13 UTC (rev 5583) +++ trunk/pywikipedia/wikipedia.py 2008-06-16 16:18:43 UTC (rev 5584) @@ -4979,6 +4979,8 @@
""" monobook_error = True + if start == '': + start='!'
while True: # encode Non-ASCII characters in hexadecimal format (e.g. %F6)