Bugs item #3605299, was opened at 2013-02-19 07:22 Message generated for change (Tracker Item Submitted) made by nettrom You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605299...
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: General Group: rewrite Status: Open Resolution: None Priority: 5 Private: No Submitted By: Morten Wang (nettrom) Assigned to: Nobody/Anonymous (nobody) Summary: Namespaces 828 and 829 missing
Initial Comment: en-WP now has namespaces 828 and 829, ref: http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=...
The following code throws a namespace error, but should return "Module:String":
import pywikibot; site = pywikibot.getSite('en'); bugPage = pywikibot.Page(site, "String", ns=828); bugPage.namespace(); 828 bugPage.title(); Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/export/scratch/morten/python-modules/lib/python/Pywikipediabot-2.0alpha-py2.7.egg/pywikibot/__init__.py", line 124, in wrapper return method(*__args, **__kw) File "/export/scratch/morten/python-modules/lib/python/Pywikipediabot-2.0alpha-py2.7.egg/pywikibot/__init__.py", line 124, in wrapper return method(*__args, **__kw) File "/export/scratch/morten/python-modules/lib/python/Pywikipediabot-2.0alpha-py2.7.egg/pywikibot/page.py", line 136, in title title = self._link.canonical_title() File "/export/scratch/morten/python-modules/lib/python/Pywikipediabot-2.0alpha-py2.7.egg/pywikibot/page.py", line 2491, in canonical_title return "%s:%s" % (self.site.namespace(self.namespace), File "/export/scratch/morten/python-modules/lib/python/Pywikipediabot-2.0alpha-py2.7.egg/pywikibot/site.py", line 1109, in namespace return self.namespaces()[num][0] KeyError: 828
Version.py output: Pywikibot (r10326 (pywikibot/__init__.py), 2012/06/08, 12:08:53, OUTDATED) Python 2.7.1 (r271:86832, Feb 8 2011, 09:38:37) [GCC 4.2.3] unicode test: triggers problem #3081100
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605299...