http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10361
Revision: 10361 Author: drtrigon Date: 2012-06-16 19:21:45 +0000 (Sat, 16 Jun 2012) Log Message: ----------- bug fix; follow up to r10353 and r10360 allow all 'export_address' calls since they do not write
Modified Paths: -------------- trunk/pywikipedia/config.py trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/config.py =================================================================== --- trunk/pywikipedia/config.py 2012-06-15 05:52:09 UTC (rev 10360) +++ trunk/pywikipedia/config.py 2012-06-16 19:21:45 UTC (rev 10361) @@ -476,7 +476,7 @@ # servers. Allows simulation runs of bots to be carried out without changing any # page on the server side. This setting may be overridden in user_config.py. actions_to_block = ['edit', 'watch', 'move', 'delete', 'undelete', 'protect', - 'emailuser'] + 'emailuser', 'submit'] # 'submit' is for non-API
# How many pages should be put to a queue in asynchroneous mode. # If maxsize is <= 0, the queue size is infinite.
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2012-06-15 05:52:09 UTC (rev 10360) +++ trunk/pywikipedia/wikipedia.py 2012-06-16 19:21:45 UTC (rev 10361) @@ -5728,7 +5728,8 @@
""" if ('action' in predata) and pywikibot.simulate and \ - (predata['action'] in pywikibot.config.actions_to_block): + (predata['action'] in pywikibot.config.actions_to_block) and \ + (address not in [self.export_address()]): pywikibot.output(u'\03{lightyellow}SIMULATION: %s action blocked.\03{default}'%\ predata['action']) import StringIO