Revision: 6914 Author: nicdumz Date: 2009-05-22 11:48:34 +0000 (Fri, 22 May 2009)
Log Message: ----------- Use the provided summary for double redirects (with 'both' no summary was provided when fixing double redirects)
Modified Paths: -------------- trunk/pywikipedia/redirect.py
Modified: trunk/pywikipedia/redirect.py =================================================================== --- trunk/pywikipedia/redirect.py 2009-05-21 14:22:53 UTC (rev 6913) +++ trunk/pywikipedia/redirect.py 2009-05-22 11:48:34 UTC (rev 6914) @@ -691,10 +691,10 @@ # Delete the two redirects content = wikipedia.translate(targetPage.site().lang, sd_template)+"\n"+content - summary = wikipedia.translate(targetPage.site().lang, + summ = wikipedia.translate(targetPage.site().lang, sd_tagging_sum) - targetPage.put(content, summary) - redir.put(content, summary) + targetPage.put(content, summ) + redir.put(content, summ) else: break # TODO Better implement loop redirect else: @@ -711,7 +711,7 @@ wikipedia.showDiff(oldText, text) if self.prompt(u'Do you want to accept the changes?'): try: - redir.put(text) + redir.put(text, summary) except wikipedia.LockedPage: wikipedia.output(u'%s is locked.' % redir.title()) except wikipedia.SpamfilterError, error: