Last modified: 2014-08-22 18:10:09 UTC
Running upload.py with the -simulate argument makes no difference. Files are uploaded to the wiki regardless of -simulate meaning "do not write anything to the wiki". I tested it on a wiki when it allowed uploads. I've also tested it on a test wiki where uploads are not enabled, so it pops an error with a traceback, that will be more meaningful: $ python pwb.py upload.py -simulate -family:test-1-23 TestFile.png test > The filename on the target wiki will default to: TestFile.png > Enter a better name, or press enter to accept: > The suggested description is: > test > Do you want to change this description? ([y]es, [N]o) > Uploading file to test-1-23:es via API.... > ERROR: Upload error: > Traceback (most recent call last): > File "scripts/upload.py", line 218, in upload_image > ignore_warnings=self.ignoreWarning) > File "/path/pywikibot/tools.py", line 310, in wrapper > return method(*__args, **__kw) > File "/path/pywikibot/site.py", line 3938, in upload > result = req.submit() > File "/path/pywikibot/data/api.py", line 458, in submit > raise APIError(code, info, **result["error"]) > APIError: uploaddisabled: Uploads are not enabled. Make sure $wgEnableUploads > is set to true in LocalSettings.php and the PHP ini setting file_uploads is > true
Gonna take this, seems easy
Change 155720 had a related patch set uploaded by Martineznovo: Adding a bunch of actions to block on simulate mode https://gerrit.wikimedia.org/r/155720
Change 155720 merged by jenkins-bot: Adding a bunch of actions to block on simulate mode https://gerrit.wikimedia.org/r/155720