Revision: 7926
Author: siebrand
Date: 2010-02-12 10:39:37 +0000 (Fri, 12 Feb 2010)
Log Message:
-----------
Abort processing when an auto entry is found in autonomous mode with skipauto
This happens often if no collection of well known formats have been defined for
a language, but they are present in the interwiki network. This can save an
enormous amount of (processing) time in given case.
Modified Paths:
--------------
trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py
===================================================================
--- trunk/pywikipedia/interwiki.py 2010-02-12 06:53:37 UTC (rev 7925)
+++ trunk/pywikipedia/interwiki.py 2010-02-12 10:39:37 UTC (rev 7926)
@@ -1230,6 +1230,10 @@
if dictName is not None:
pywikibot.output(u'WARNING: %s:%s relates to %s:%s, which
is an auto entry %s(%s)' % (self.originPage.site().language(),
self.originPage.title(), page.site().language(),page.title(),dictName,year))
+ # Abort processing if the bot is running in autonomous
mode.
+ if globalvar.autonomous:
+ self.makeForcedStop(counter)
+
# Register this fact at the todo-counter.
counter.minus(page.site())
_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn