Please compare this to my previously uploaded solution: https://sourceforge.net/tracker/?func=detail&aid=3054514&group_id=93... Wouldn't it be nicer?
Bináris
2010/10/21 amir@svn.wikimedia.org
Revision: 8679 Author: amir Date: 2010-10-21 13:11:09 +0000 (Thu, 21 Oct 2010)
Log Message:
If summary is more than 200 characters will be created copyright violation
Modified Paths:
trunk/pywikipedia/catlib.py
Modified: trunk/pywikipedia/catlib.py
--- trunk/pywikipedia/catlib.py 2010-10-21 13:03:29 UTC (rev 8678) +++ trunk/pywikipedia/catlib.py 2010-10-21 13:11:09 UTC (rev 8679) @@ -458,7 +458,11 @@ wikipedia.output('Moving text from %s to %s.' % (self.title(), targetCat.title())) authors = ', '.join(self.contributingUsers()) creationSummary = wikipedia.translate(wikipedia.getSite(), msg_created_for_renaming) % (self.title(), authors)
targetCat.put(self.get(), creationSummary)
#Maybe sometimes length of summary is more than 200 characters
and thus will not be shown.so bot must listify authors in another place
if len(creationSummary)>200:
targetCat.put(self.get()+u"/n/nAuthors: %s" % authors,
creationSummary)
else:
targetCat.put(self.get(), creationSummary) return True
#Like copyTo above, except this removes a list of templates (like
deletion templates) that appear in
Pywikipedia-svn mailing list Pywikipedia-svn@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn
pywikipedia-l@lists.wikimedia.org