Revision: 8714 Author: xqt Date: 2010-11-07 21:42:45 +0000 (Sun, 07 Nov 2010) Log Message: ----------- Normalize template capitalization
Modified Paths: -------------- trunk/pywikipedia/families/wikipedia_family.py trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2010-11-07 21:13:38 UTC (rev 8713) +++ trunk/pywikipedia/families/wikipedia_family.py 2010-11-07 21:42:45 UTC (rev 8714) @@ -741,7 +741,7 @@
self.disambiguationTemplates = { # If no templates are given, retrieve names from the live wiki - # ([[MediaWiki:Disambiguationspage]] + # ([[MediaWiki:Disambiguationspage]]) '_default': [u'Disambig'], 'ang': [u'Disambig', u'Geodis'], 'arc': [u'ܕ'],
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2010-11-07 21:13:38 UTC (rev 8713) +++ trunk/pywikipedia/wikipedia.py 2010-11-07 21:42:45 UTC (rev 8714) @@ -1229,7 +1229,7 @@ regex = re.compile('(((.+?)))') content = disambigpages.get() for index in regex.findall(content): - disambigs.add(index) + disambigs.add(index[:1].upper() + index[1:]) except NoPage: disambigs = set([self._site.mediawiki_message( 'Disambiguationspage').split(':', 1)[1]])