Revision: 7982 Author: xqt Date: 2010-03-09 07:34:01 +0000 (Tue, 09 Mar 2010)
Log Message: ----------- templates aren't disambigs
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2010-03-06 12:46:30 UTC (rev 7981) +++ trunk/pywikipedia/wikipedia.py 2010-03-09 07:34:01 UTC (rev 7982) @@ -1190,7 +1190,7 @@ t[:1].upper() + t[1:] for t in distl ) disambigInPage = self._site._disambigtemplates.intersection(self.templates()) - self._isDisambig = len(disambigInPage) > 0 + self._isDisambig = self.namespace() != 10 and len(disambigInPage) > 0 return self._isDisambig
def getReferences(self, follow_redirects=True, withTemplateInclusion=True,
pywikipedia-svn@lists.wikimedia.org