Dvorapa added a comment.

First of all, the file should have correct Pywikibot license. Also the args should be in the same format like in other scripts (-summary) and there should be handled other args added (like "These args are not supported by this script: %s"). You can upload your file directly to Gerrit using Git/Svn or using a Gerrit patch uploader.

Finally for this purpose we already have pagefromfile.py or a little bit easier add_text.py. You can also use basic.py, which has the same functionality as add_text.py, but contains everything the proper Pywikibot script should have (so it is left here as an example to novice PWB script programmers).


TASK DETAIL
https://phabricator.wikimedia.org/T198817

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa
Cc: saper, Zoranzoki21, Xqt, Dvorapa, pywikibot-bugs-list, Framawiki, Aklapper, David_Hedlund, Andrewjhill, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to