https://bugzilla.wikimedia.org/show_bug.cgi?id=71401
Bug ID: 71401 Summary: have an option to pass upload warning for imagetransfer.py Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: Other scripts Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: reza.energy@gmail.com Web browser: --- Mobile Platform: ---
I want to use imagetransfer.py inside other bot and using it automaticlay when an image is deleted before on local wiki (target wiki) it asks:
Do you want to ignore? ([y]es, [N]o)
It is much better to have an option for ignoring API warning (the image was deleted warning).
https://bugzilla.wikimedia.org/show_bug.cgi?id=71401
--- Comment #1 from reza1615 reza.energy@gmail.com --- at line 198
bot = upload.UploadRobot(url=url, description=description, targetSite=self.targetSite, urlEncoding=sourceSite.encoding(), keepFilename=self.keep_name, verifyDescription=not self.keep_name)
Should be
bot = upload.UploadRobot(url=url, description=description, targetSite=self.targetSite, urlEncoding=sourceSite.encoding(), keepFilename=self.keep_name, verifyDescription=not self.keep_name, ignoreWarning=False)
https://bugzilla.wikimedia.org/show_bug.cgi?id=71401
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 164722 had a related patch set uploaded by Reza: Making upload API warning ignorable
https://gerrit.wikimedia.org/r/164722
https://bugzilla.wikimedia.org/show_bug.cgi?id=71401
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=71401
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 164722 merged by jenkins-bot: Making upload API warning ignorable
https://gerrit.wikimedia.org/r/164722
https://bugzilla.wikimedia.org/show_bug.cgi?id=71401
Jesús Martínez Novo (Ciencia Al Poder) martineznovo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED CC| |martineznovo@gmail.com Resolution|--- |FIXED Assignee|Pywikipedia-bugs@lists.wiki |reza.energy@gmail.com |media.org |
--- Comment #4 from Jesús Martínez Novo (Ciencia Al Poder) martineznovo@gmail.com --- Patch merged
pywikipedia-bugs@lists.wikimedia.org