We have site.upload, but no direct method on the ImagePage object. It would make sense to do page.upload(...) instead of site.upload(page, ...).
Version: core-(2.0)
Severity: enhancement
We have site.upload, but no direct method on the ImagePage object. It would make sense to do page.upload(...) instead of site.upload(page, ...).
Version: core-(2.0)
Severity: enhancement
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
[IMPR] Add upload to FilePage | pywikibot/core | master | +61 -0 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Invalid | None | T72936 Important tasks to be solved (tracking) | |||
Open | Feature | None | T57880 Functionality existing in compat but missing from core (tracking) | ||
Resolved | droid | T66856 Port various Commons upload bots to core & move to separate repository | |||
Open | None | T60942 Features to move from scripts to framework (tracking) | |||
Resolved | Xqt | T89499 Refactor upload.py / move re-usable parts to framework | |||
Resolved | Xqt | T68561 Add 'upload' method to ImagePage |
Related to this, but maybe should be a separate task, is determining valid file page names for *new* files being uploaded based on filenames from other sources. See flickrripper.cleanUpTitle https://git.wikimedia.org/blob/pywikibot%2Fcore.git/0310bb2acd1417f81e9cd17e013ca6f38c4be943/scripts%2Fflickrripper.py#L212
Change 306466 had a related patch set uploaded (by Xqt):
[IMPR] Add upload to FilePage
Tested on https://commons.wikimedia.beta.wmflabs.org/wiki/File:Magul.png and it works properly. Closing.