Revision: 8644 Author: russblau Date: 2010-10-12 15:41:54 +0000 (Tue, 12 Oct 2010)
Log Message: ----------- Fix bugs in Page.isDisambig() method from r8615
Modified Paths: -------------- branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py =================================================================== --- branches/rewrite/pywikibot/page.py 2010-10-12 15:33:18 UTC (rev 8643) +++ branches/rewrite/pywikibot/page.py 2010-10-12 15:41:54 UTC (rev 8644) @@ -514,7 +514,7 @@ """ if not hasattr(self, "_isDisambig"): if not hasattr(self.site, "_disambigtemplates"): - default = set(self._site.family.disambig('_default')) + default = set(self.site.family.disambig('_default')) try: distl = self.site.family.disambig(self.site.code, fallback=False) @@ -524,7 +524,7 @@ try: disambigpages = Page(self.site, "MediaWiki:Disambiguationspage") - disambigs = set(link.title(withNamespace=False) + disambigs = set(link for link in disambigpages.linkedPages() if link.namespace() == 10) # add index article templates
pywikipedia-svn@lists.wikimedia.org