http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9403
Revision: 9403 Author: xqt Date: 2011-07-16 20:05:58 +0000 (Sat, 16 Jul 2011) Log Message: ----------- DisambiguationRobot has new parameter "dn", follow-up fix for r8239
Modified Paths: -------------- trunk/pywikipedia/misspelling.py
Modified: trunk/pywikipedia/misspelling.py =================================================================== --- trunk/pywikipedia/misspelling.py 2011-07-16 19:40:38 UTC (rev 9402) +++ trunk/pywikipedia/misspelling.py 2011-07-16 20:05:58 UTC (rev 9403) @@ -67,7 +67,7 @@
def __init__(self, always, firstPageTitle, main_only): solve_disambiguation.DisambiguationRobot.__init__( - self, always, [], True, self.createPageGenerator(firstPageTitle), + self, always, [], True, False, self.createPageGenerator(firstPageTitle), False, main_only)
def createPageGenerator(self, firstPageTitle): @@ -113,7 +113,7 @@ return True
# Overrides the DisambiguationRobot method. - def setSummaryMessage(self, disambPage, new_targets, unlink): + def setSummaryMessage(self, disambPage, new_targets=[], unlink=False, dn=False): # TODO: setSummaryMessage() in solve_disambiguation now has parameters # new_targets and unlink. Make use of these here. comment = pywikibot.translate(self.mysite, self.msg) \
pywikipedia-svn@lists.wikimedia.org