jayvdb merged this task into T69284: claimit.py should add another value but not duplicate.
TASK DETAIL
https://phabricator.wikimedia.org/T75397
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb
Cc: pywikipedia-bugs, Yamaha5, jayvdb
jayvdb edited the task description.
jayvdb removed a subscriber: Unknown Object (????).
jayvdb set Security to none.
TASK DETAIL
https://phabricator.wikimedia.org/T71286
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb
Cc: pywikipedia-bugs, JAnD, Ricordisamoa, jayvdb
jayvdb added a comment.
As already noted, wikipedia and wikisource done in https://gerrit.wikimedia.org/r/#/c/166258/
wikidata and commons done in https://gerrit.wikimedia.org/r/#/c/166864/
wikiquote and wikibooks and wiktionary are the main ones yet to be done.
TASK DETAIL
https://phabricator.wikimedia.org/T57017
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb
Cc: pywikipedia-bugs, Ladsgroup, Legoktm, Ricordisamoa, jayvdb, Mpaa, Xqt
jayvdb added a comment.
Note handleArgs has been replaced with handle_args.
>>! In T70664#739409, @zhuyifei1999 wrote:
> --help or -h would do:
>
> $ python pwb.py scripts/replicate_wiki.py -h
> usage: replicate_wiki.py [-h] [-f FAMILY] [-r] [-o ORIGINAL_WIKI]
> [-ns NAMESPACE] [-dns DEST_NAMESPACE]
> destination [destination ...]
>
> positional arguments:
> destination destination wiki(s)
>
> optional arguments:
> -h, --help show this help message and exit
> -f FAMILY, --family FAMILY
> wiki family
> -r, --replace actually replace pages (without this option you will
> only get an overview page)
> -o ORIGINAL_WIKI, --original ORIGINAL_WIKI
> original wiki
> -ns NAMESPACE, --namespace NAMESPACE
> specify namespace
> -dns DEST_NAMESPACE, --dest-namespace DEST_NAMESPACE
> destination namespace (if different)
--help does emi the above, bit --help/-help should also show the global options which are documented in pywikibot/bot.py showHelp() variable globalHelp
this is tested by tests/script_tests.py - edit that file to see replicate_wiki.py is treated differently because it doesnt emit the standard global help message.
TASK DETAIL
https://phabricator.wikimedia.org/T70664
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb
Cc: pywikipedia-bugs, zhuyifei1999, Ricordisamoa, jayvdb
gerritbot added a project: Patch-For-Review.
gerritbot added a comment.
Change 176747 had a related patch set uploaded (by Mloc-gci):
editarticle: move from optparse to argparse
[[https://gerrit.wikimedia.org/r/176747]]
#patch-for-review
TASK DETAIL
https://phabricator.wikimedia.org/T70617
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: gerritbot
Cc: pywikipedia-bugs, XZise, jayvdb, valhallasw
XZise added a comment.
No not really: `handleArgs` (or how it's now called `handle_args`) is already called (in [[ https://git.wikimedia.org/blob/pywikibot%2Fcore.git/29125188e56d34510f166de… | line 46 ]]), but this request is about parsing the script specific parameters. And there are several ways to do that. Currently most scripts are doing it manually by iterating through the entries and then “doing it's stuff” but this is using optparse.
Now depending on how fast the argparse patch (https://gerrit.wikimedia.org/r/156089/) is going to be imported it would be better to just change the optparse into argparse. That is relatively easy and with that linked patch the adjustments are minimal.
TASK DETAIL
https://phabricator.wikimedia.org/T70617
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: XZise
Cc: pywikipedia-bugs, XZise, jayvdb, valhallasw
valhallasw added a subscriber: valhallasw.
valhallasw added a comment.
The [[https://www.google-melange.com/gci/task/view/google/gci2014/5016913482612736 | GCI task]] reads
(NOTE) The Pywikibot script named "editarticle.py" uses optparse which is deprecated in Python 3.2, this should be replaced by argparse
Should that not be "replaced by handleArgs"?
TASK DETAIL
https://phabricator.wikimedia.org/T70617
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: valhallasw
Cc: pywikipedia-bugs, XZise, jayvdb, valhallasw
gerritbot added a comment.
Change 172023 had a related patch set uploaded (by John Vandenberg):
Asynchronous HTTP requests
[[https://gerrit.wikimedia.org/r/172023]]
#patch-for-review
TASK DETAIL
https://phabricator.wikimedia.org/T57889
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: gerritbot
Cc: pywikipedia-bugs, valhallasw, Strainu, jayvdb
XZise closed this task as "Resolved".
XZise removed a project: Patch-For-Review.
TASK DETAIL
https://phabricator.wikimedia.org/T76285
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: XZise
Cc: pywikipedia-bugs, XZise, jayvdb