http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10198
Revision: 10198
Author: xqt
Date: 2012-05-06 12:32:58 +0000 (Sun, 06 May 2012)
Log Message:
-----------
additional screen messages. MinorEdit is set as default.
Modified Paths:
--------------
trunk/pywikipedia/archivebot.py
Modified: trunk/pywikipedia/archivebot.py
===================================================================
--- trunk/pywikipedia/archivebot.py 2012-05-06 11:46:03 UTC (rev 10197)
+++ trunk/pywikipedia/archivebot.py 2012-05-06 12:32:58 UTC (rev 10198)
@@ -335,7 +335,7 @@
self.header += line + '\n'
if curThread:
self.threads.append(curThread)
- pywikibot.output(u'%d Threads found.' % len(self.threads))
+ pywikibot.output(u'%d Threads found on %s' % (len(self.threads), self))
def feedThread(self, thread, maxArchiveSize=(250*1024,'B')):
self.threads.append(thread)
@@ -360,7 +360,7 @@
newtext += t.toText()
if self.full:
summary += ' ' + message('archivebot-archive-full')
- self.put(newtext, minorEdit=True, comment=summary)
+ self.put(newtext, comment=summary)
class PageArchiver(object):
@@ -492,6 +492,7 @@
% self.archivedThreads)
return
if whys:
+ pywikibot.output(u'Archiving %d thread(s).' % self.archivedThreads)
#Save the archives first (so that bugs don't cause a loss of data)
for a in sorted(self.archives.keys()):
self.commentParams['count'] = self.archives[a].archivedThreads