Revision: 7515
Author: xqt
Date: 2009-10-20 05:43:21 +0000 (Tue, 20 Oct 2009)
Log Message:
-----------
long time warning and choice for proceeding reflist count
Modified Paths:
--------------
trunk/pywikipedia/refcheck.py
Modified: trunk/pywikipedia/refcheck.py
===================================================================
--- trunk/pywikipedia/refcheck.py 2009-10-20 05:10:32 UTC (rev 7514)
+++ trunk/pywikipedia/refcheck.py 2009-10-20 05:43:21 UTC (rev 7515)
@@ -67,7 +67,14 @@
robot = ReferencesRobot()
if not argsList:
argsList = templates
- robot.countRefs(argsList, namespaces)
+ choice = ''
+ if 'reflist' in argsList:
+ wikipedia.output(u'NOTE: it will take a long time to count
"reflist".')
+ choice = wikipedia.inputChoice(u'Proceed anyway?', ['yes', 'no',
'skip'], ['y', 'n', 's'], 'y')
+ if choice == 's':
+ argsList.remove('reflist')
+ if choice <> 'n':
+ robot.countRefs(argsList, namespaces)
else:
wikipedia.showHelp('refcheck')
_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn