Revision: 4754 Author: rotem Date: 2007-12-22 14:56:00 +0000 (Sat, 22 Dec 2007)
Log Message: ----------- Default namespace should be 14, like it is 6 in ImagePage.
Modified Paths: -------------- trunk/pywikipedia/catlib.py
Modified: trunk/pywikipedia/catlib.py =================================================================== --- trunk/pywikipedia/catlib.py 2007-12-22 14:45:38 UTC (rev 4753) +++ trunk/pywikipedia/catlib.py 2007-12-22 14:56:00 UTC (rev 4754) @@ -56,7 +56,7 @@ category: pages"""
def __init__(self, site, title = None, insite = None, sortKey = None): - wikipedia.Page.__init__(self, site = site, title = title, insite = insite) + wikipedia.Page.__init__(self, site = site, title = title, insite = insite, defaultNamespace = 14) self.sortKey = sortKey if self.namespace() != 14: raise ValueError(u'BUG: %s is not in the category namespace!' % title)
pywikipedia-l@lists.wikimedia.org