http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11012
Revision: 11012 Author: multichill Date: 2013-01-28 20:45:24 +0000 (Mon, 28 Jan 2013) Log Message: ----------- Revert some test code added by accident in r10842
Modified Paths: -------------- trunk/pywikipedia/data_ingestion.py
Modified: trunk/pywikipedia/data_ingestion.py =================================================================== --- trunk/pywikipedia/data_ingestion.py 2013-01-27 20:03:00 UTC (rev 11011) +++ trunk/pywikipedia/data_ingestion.py 2013-01-28 20:45:24 UTC (rev 11012) @@ -179,9 +179,9 @@ self.site = site
def _doUpload(self, photo): - #duplicates = photo.findDuplicateImages(self.site) - #if duplicates: - # return duplicates[0] + duplicates = photo.findDuplicateImages(self.site) + if duplicates: + return duplicates[0]
title = photo.getTitle(self.titlefmt) description = photo.getDescription(self.pagefmt) @@ -193,11 +193,9 @@ verifyDescription = False, ignoreWarning=True, targetSite = self.site) - #bot._contents = photo.downloadPhoto().getvalue() - #bot._retrieved = True - print title - print description - #bot.run() + bot._contents = photo.downloadPhoto().getvalue() + bot._retrieved = True + bot.run()
return title
pywikipedia-svn@lists.wikimedia.org