http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9010
Revision: 9010 Author: xqt Date: 2011-02-25 15:10:25 +0000 (Fri, 25 Feb 2011) Log Message: ----------- Dont test against page.canBeEdited() if we only save to file and do not edit live wiki (patch submitted by Bin?\195?\161ris)
Modified Paths: -------------- trunk/pywikipedia/replace.py
Modified: trunk/pywikipedia/replace.py =================================================================== --- trunk/pywikipedia/replace.py 2011-02-25 10:06:42 UTC (rev 9009) +++ trunk/pywikipedia/replace.py 2011-02-25 15:10:25 UTC (rev 9010) @@ -441,7 +441,7 @@ try: # Load the page's text from the wiki original_text = page.get(get_redirect=True) - if not page.canBeEdited(): + if not (self.articles or page.canBeEdited()): pywikibot.output(u"You can't edit page %s" % page.title(asLink=True)) continue
pywikipedia-svn@lists.wikimedia.org