http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9780
Revision: 9780 Author: platonides Date: 2011-11-28 14:27:09 +0000 (Mon, 28 Nov 2011) Log Message: ----------- When used a filename customized in stdin input, if you received a warning it was silently reset to the default one.
Modified Paths: -------------- trunk/pywikipedia/upload.py
Modified: trunk/pywikipedia/upload.py =================================================================== --- trunk/pywikipedia/upload.py 2011-11-24 07:38:29 UTC (rev 9779) +++ trunk/pywikipedia/upload.py 2011-11-28 14:27:09 UTC (rev 9780) @@ -312,6 +312,7 @@ ['Yes', 'No'], ['y', 'N'], 'N') if answer == "y": self.ignoreWarning = 1 + self.useFilename = filename self.keepFilename = True return self.upload_image(debug, sessionKey=data['sessionkey'])
pywikipedia-svn@lists.wikimedia.org