[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread zhuyifei1999
zhuyifei1999 added a comment. @David_Hedlund Everything resolved for you? Can we close this?TASK DETAILhttps://phabricator.wikimedia.org/T198817EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, zhuyifei1999Cc: gerritbot, zhuyifei1999, saper, Zoranzoki21, Xq

[Pywikipedia-bugs] [Maniphest] [Edited] T61649: transferbot does not support namespaces in right way

2018-07-05 Thread Dalba
Dalba updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...The appended summary text is: ``` This page was moved from [[wikipedia:de:Benutzer:Xqt/Test]]. It's edit history can be viewed at [[Benutzer:Xqt/Test/edithistory]] story can be viewed at [[Benutzer:Xqt/Test/edithistor

[Pywikipedia-bugs] [Maniphest] [Updated] T198934: TestLogentryParams.test_BlockEntry fails on hidden titles

2018-07-05 Thread JJMC89
JJMC89 closed this task as a duplicate of T78152: log entry has no title. TASK DETAILhttps://phabricator.wikimedia.org/T198934EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JJMC89Cc: Aklapper, pywikibot-bugs-list, Dalba, Magul, Tbscho, MayS, Mdupont, JJMC89,

[Pywikipedia-bugs] [Maniphest] [Merged] T78152: log entry has no title

2018-07-05 Thread JJMC89
JJMC89 merged a task: T198934: TestLogentryParams.test_BlockEntry fails on hidden titles. TASK DETAILhttps://phabricator.wikimedia.org/T78152EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, JJMC89Cc: Dalba, Masti, Magul, Shanmugamp7, gerritbot, Xqt, jayvdb

[Pywikipedia-bugs] [Maniphest] [Created] T198934: TestLogentryParams.test_BlockEntry fails on hidden titles

2018-07-05 Thread Dalba
Dalba created this task.Dalba triaged this task as "High" priority.Dalba added projects: Pywikibot-core, Pywikibot-tests.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONhttps://travis-ci.org/wikimedia/pywikibot/jobs/400546127#L ERROR: test_BlockEntry_dewp (tests.logent

[Pywikipedia-bugs] [Maniphest] [Updated] T198933: WikibaseKnownTypesTests.test_datatypes is failing on beta cluster tests

2018-07-05 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAILhttps://phabricator.wikimedia.org/T198933EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: gerritbotCc: gerritbot, Aklapper, pywikibot-bugs-list, Dalba, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci,

[Pywikipedia-bugs] [Maniphest] [Commented On] T198933: WikibaseKnownTypesTests.test_datatypes is failing on beta cluster tests

2018-07-05 Thread gerritbot
gerritbot added a comment. Change 444148 had a related patch set uploaded (by Dalba; owner: dalba): [pywikibot/core@master] WikibaseKnownTypesTests: Add 'wikibase-sense' to unsupported types https://gerrit.wikimedia.org/r/444148TASK DETAILhttps://phabricator.wikimedia.org/T198933EMAIL PREFERENCESh

[Pywikipedia-bugs] [Maniphest] [Updated] T198933: WikibaseKnownTypesTests.test_datatypes is failing on beta cluster tests

2018-07-05 Thread Dalba
Dalba added a project: Pywikibot-Wikidata. TASK DETAILhttps://phabricator.wikimedia.org/T198933EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DalbaCc: gerritbot, Aklapper, pywikibot-bugs-list, Dalba, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian

[Pywikipedia-bugs] [Maniphest] [Created] T198933: WikibaseKnownTypesTests.test_datatypes is failing on beta cluster tests

2018-07-05 Thread Dalba
Dalba created this task.Dalba added projects: Pywikibot-core, Pywikibot-tests.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONhttps://travis-ci.org/wikimedia/pywikibot/jobs/400546130#L1379 self =

[Pywikipedia-bugs] [Maniphest] [Triaged] T198933: WikibaseKnownTypesTests.test_datatypes is failing on beta cluster tests

2018-07-05 Thread Dalba
Dalba triaged this task as "High" priority. TASK DETAILhttps://phabricator.wikimedia.org/T198933EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DalbaCc: Aklapper, pywikibot-bugs-list, Dalba, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb,

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread Xqt
Xqt added a comment. In T198817#4401454, @Dvorapa wrote: Probably also https://www.mediawiki.org/wiki/Manual:Pywikibot/pagefromfile.py needs to be updated with the new parameters Seems that such tags breaks transclusionsTASK DETAILhttps://phabricator.wikimedia.org/T198817EMAIL PREFERENCEShttps:/

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread Dvorapa
Dvorapa added a comment. Probably also https://www.mediawiki.org/wiki/Manual:Pywikibot/pagefromfile.py needs to be updated with the new parametersTASK DETAILhttps://phabricator.wikimedia.org/T198817EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, DvorapaCc

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread David_Hedlund
David_Hedlund added a comment. In T198817#4401430, @Xqt wrote: In T198817#4400838, @David_Hedlund wrote: Exactly, pagefromfile.py can't overwrite pages. It says: Page Test already exists, not adding! You may use one of these options: -appendtopAdd the text to the top of the existing page

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread Xqt
Xqt added a comment. In T198817#4400838, @David_Hedlund wrote: Exactly, pagefromfile.py can't overwrite pages. It says: Page Test already exists, not adding! You may use one of these options: -appendtopAdd the text to the top of the existing page -appendbottom Add the text to the bottom of

[Pywikipedia-bugs] [Maniphest] [Commented On] T194950: Include Wikibase dispatch lag in API "maxlag" enforcing

2018-07-05 Thread Stashbot
Stashbot added a comment. Mentioned in SAL (#wikimedia-operations) [2018-07-05T18:21:19Z] Synchronized wmf-config/Wikibase-production.php: SWAT: [[gerrit:443939|Set dispatchLagToMaxLagFactor to 60 for wikidata]] T194950 (duration: 00m 51s)TASK DETAILhttps://phabricator.wikimedia.org/T194950EMAIL P

[Pywikipedia-bugs] [Maniphest] [Commented On] T194950: Include Wikibase dispatch lag in API "maxlag" enforcing

2018-07-05 Thread gerritbot
gerritbot added a comment. Change 443939 merged by jenkins-bot: [operations/mediawiki-config@master] Set dispatchLagToMaxLagFactor to 60 for wikidata https://gerrit.wikimedia.org/r/443939TASK DETAILhttps://phabricator.wikimedia.org/T194950EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread David_Hedlund
David_Hedlund added a comment. In T198817#4400810, @zhuyifei1999 wrote: Creating pages is done, overwriting exiting pages... add_text can't replace. Exactly, pagefromfile.py can't overwrite pages. It says: Page Test already exists, not adding!TASK DETAILhttps://phabricator.wikimedia.org/T198817

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread David_Hedlund
David_Hedlund added a comment. In T198817#4400175, @gerritbot wrote: Change 444011 had a related patch set uploaded (by Xqt; owner: Xqt): [pywikibot/core@master] [IMPR] New options for pagefromfile.py https://gerrit.wikimedia.org/r/444011 @Xqt Thank you for the patch.TASK DETAILhttps://phabric

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread gerritbot
gerritbot added a comment. Change 444011 merged by jenkins-bot: [pywikibot/core@master] [IMPR] New options for pagefromfile.py https://gerrit.wikimedia.org/r/444011TASK DETAILhttps://phabricator.wikimedia.org/T198817EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread zhuyifei1999
zhuyifei1999 added a comment. Creating pages is done, overwriting exiting pages... add_text can't replace.TASK DETAILhttps://phabricator.wikimedia.org/T198817EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, zhuyifei1999Cc: gerritbot, zhuyifei1999, saper, Z

[Pywikipedia-bugs] [Maniphest] [Commented On] T198889: Allow different projects of the same language to have different configs in clean_sandbox.py

2018-07-05 Thread zhuyifei1999
zhuyifei1999 added a comment. I was suggesting to switch content by dbname, but this can potentially break third-party wikis.TASK DETAILhttps://phabricator.wikimedia.org/T198889EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: MarcoAurelio, Aklap

[Pywikipedia-bugs] [Maniphest] [Created] T198889: Allow different projects of the same language to have different configs in clean_sandbox.py

2018-07-05 Thread MarcoAurelio
MarcoAurelio created this task.MarcoAurelio added a project: Pywikibot-Other-scripts.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONAs discussed with @zhuyifei1999 on IRC, this https://github.com/wikimedia/pywikibot/blob/master/scripts/clean_sandbox.py script would benefit

[Pywikipedia-bugs] [Maniphest] [Merged] T188231: listpages logging fails with UnicodeEncodeError

2018-07-05 Thread Dalba
Dalba added a subscriber: Framawiki.Dalba merged a task: T196875: category.py logging fails with UnicodeEncodeError for Python 3. TASK DETAILhttps://phabricator.wikimedia.org/T188231EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, DalbaCc: Framawiki, gerri

[Pywikipedia-bugs] [Maniphest] [Updated] T196875: category.py logging fails with UnicodeEncodeError for Python 3

2018-07-05 Thread Dalba
Dalba closed this task as a duplicate of T188231: listpages logging fails with UnicodeEncodeError. TASK DETAILhttps://phabricator.wikimedia.org/T196875EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DalbaCc: Aklapper, Framawiki, Dalba, valhallasw, Xqt, pywikib

[Pywikipedia-bugs] [Maniphest] [Commented On] T196875: category.py logging fails with UnicodeEncodeError for Python 3

2018-07-05 Thread Dalba
Dalba added a comment. I believe the solution to T188231 should also have resolved this one.TASK DETAILhttps://phabricator.wikimedia.org/T196875EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DalbaCc: Aklapper, Framawiki, Dalba, valhallasw, Xqt, pywikibot-bugs

[Pywikipedia-bugs] [Maniphest] [Commented On] T188231: listpages logging fails with UnicodeEncodeError

2018-07-05 Thread gerritbot
gerritbot added a comment. Change 444014 merged by jenkins-bot: [pywikibot/core@master] bot.py: Open RotatingFileHandler with utf-8 encoding https://gerrit.wikimedia.org/r/444014TASK DETAILhttps://phabricator.wikimedia.org/T188231EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/em

[Pywikipedia-bugs] [Maniphest] [Closed] T188231: listpages logging fails with UnicodeEncodeError

2018-07-05 Thread Xqt
Xqt closed this task as "Resolved".Xqt claimed this task. TASK DETAILhttps://phabricator.wikimedia.org/T188231EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: gerritbot, Mpaa, Zoranzoki21, Dalba, Aklapper, pywikibot-bugs-list, valhallasw, Xqt, Gaboe420,

[Pywikipedia-bugs] [Maniphest] [Updated] T188231: listpages logging fails with UnicodeEncodeError

2018-07-05 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAILhttps://phabricator.wikimedia.org/T188231EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: gerritbotCc: gerritbot, Mpaa, Zoranzoki21, Dalba, Aklapper, pywikibot-bugs-list, valhallasw, Xqt, Gaboe420, Versusx

[Pywikipedia-bugs] [Maniphest] [Commented On] T188231: listpages logging fails with UnicodeEncodeError

2018-07-05 Thread gerritbot
gerritbot added a comment. Change 444014 had a related patch set uploaded (by Dalba; owner: dalba): [pywikibot/core@master] bot.py: Open RotatingFileHandler with utf-8 encoding https://gerrit.wikimedia.org/r/444014TASK DETAILhttps://phabricator.wikimedia.org/T188231EMAIL PREFERENCEShttps://phabric

[Pywikipedia-bugs] [Maniphest] [Commented On] T188231: listpages logging fails with UnicodeEncodeError

2018-07-05 Thread Xqt
Xqt added a comment. @valhallasw @Xqt: could you add a breakpoint/print statement to ... to figure out which stream this is going to? Is this the console or is it trying to log to a file? I added: stream = self.stream print('>>>', msg, '<<<') stream.write(msg) with result: >>> 2018-07-05 18:14

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread gerritbot
gerritbot added a comment. Change 444011 had a related patch set uploaded (by Xqt; owner: Xqt): [pywikibot/core@master] [IMPR] New options for pagefromfile.py https://gerrit.wikimedia.org/r/444011TASK DETAILhttps://phabricator.wikimedia.org/T198817EMAIL PREFERENCEShttps://phabricator.wikimedia.org

[Pywikipedia-bugs] [Maniphest] [Updated] T198817: edit and create pages

2018-07-05 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAILhttps://phabricator.wikimedia.org/T198817EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, gerritbotCc: gerritbot, zhuyifei1999, saper, Zoranzoki21, Xqt, Dvorapa, pywikibot-bugs-list, Framawiki, Aklapp

[Pywikipedia-bugs] [Maniphest] [Triaged] T198817: edit and create pages

2018-07-05 Thread Xqt
Xqt triaged this task as "Low" priority. TASK DETAILhttps://phabricator.wikimedia.org/T198817EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: zhuyifei1999, saper, Zoranzoki21, Xqt, Dvorapa, pywikibot-bugs-list, Framawiki, Aklapper, David_Hedlund, Magul,

[Pywikipedia-bugs] [Maniphest] [Claimed] T198817: edit and create pages

2018-07-05 Thread Xqt
Xqt claimed this task. TASK DETAILhttps://phabricator.wikimedia.org/T198817EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: zhuyifei1999, saper, Zoranzoki21, Xqt, Dvorapa, pywikibot-bugs-list, Framawiki, Aklapper, David_Hedlund, Magul, Tbscho, MayS, Mdup

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread zhuyifei1999
zhuyifei1999 added a comment. In T198817#4400033, @Xqt wrote: I am wondering that it is able for Linux because the option parameter -text:"$(cat Test.wiki)" is just a text. No glue why/how the bot can Interpret this as a batch command It doesn't. That's bash. Double quotes allows interpretation

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread Dvorapa
Dvorapa added a comment. In T198817#4400033, @Xqt wrote: Probably Linux only, I do not know, hot to write Windows shell/Powershell command like this I am wondering that it is able for Linux because the option parameter -text:"$(cat Test.wiki)" is just a text. No glue why/how the bot can Interpret

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread Xqt
Xqt added a comment. Probably Linux only, I do not know, hot to write Windows shell/Powershell command like this I am wondering that it is able for Linux because the option parameter -text:"$(cat Test.wiki)" is just a text. No glue why/how the bot can Interpret this as a batch commandTASK DETAILht

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread Dvorapa
Dvorapa added a comment. In T198817#4399968, @Xqt wrote: It does not (might be it does for others than windows) Probably Linux only, I do not know, hot to write Windows shell/Powershell command like this (I've found only https://stackoverflow.com/questions/43225925/windows-cmd-pass-output-of-one

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread Xqt
Xqt added a comment. This should work too if page does not exist: $ echo "Hello world" > Test.wiki $ python pwb.py add_text -text:"$(cat Test.wiki)" -page:"Test" It does not (might be it does for others than windows)TASK DETAILhttps://phabricator.wikimedia.org/T198817EMAIL PREFERENCEShttps://pha

[Pywikipedia-bugs] [Maniphest] [Edited] T187009: Pywikibot documentation build throws too many warnings to console (goal)

2018-07-05 Thread Dvorapa
Dvorapa updated the task description. (Show Details) CHANGES TO TASK DESCRIPTIONCurrently there are **1850** warnings: - more than one target found for cross-reference (157):127): we should be more specific in `@type param: Page` and similar, partially #Upstream as some of these should prefer loca

[Pywikipedia-bugs] [Maniphest] [Updated] T187009: Pywikibot documentation build throws too many warnings to console (goal)

2018-07-05 Thread Dvorapa
Dvorapa removed a project: Patch-For-Review. TASK DETAILhttps://phabricator.wikimedia.org/T187009EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DvorapaCc: zhuyifei1999, Zoranzoki21, gerritbot, Aklapper, pywikibot-bugs-list, Dvorapa, Cpaulf30, Ivana_Isadora, J

[Pywikipedia-bugs] [Maniphest] [Commented On] T187009: Pywikibot documentation build throws too many warnings to console (goal)

2018-07-05 Thread gerritbot
gerritbot added a comment. Change 443918 merged by jenkins-bot: [pywikibot/core@master] site.py: Improve type hints https://gerrit.wikimedia.org/r/443918TASK DETAILhttps://phabricator.wikimedia.org/T187009EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: gerrit

[Pywikipedia-bugs] [Maniphest] [Closed] T198849: Argument processing chokes on python 2 when an argument contains non-ascii

2018-07-05 Thread zhuyifei1999
zhuyifei1999 closed this task as "Resolved".zhuyifei1999 added a comment. @.avgas It should land on toolforge nightly at 1 UTC.TASK DETAILhttps://phabricator.wikimedia.org/T198849EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: gerritbot, Dalba,

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread zhuyifei1999
zhuyifei1999 added a comment. In T198817#4399570, @Dvorapa wrote: I suggest to improve both pagefromfile.py and add_text.py/basic.py: pagefromfile.py to make the batch uploading as easy as possible. It should be able to read from the stream, from one file or multiple files. add_text.py/basic.py

[Pywikipedia-bugs] [Maniphest] [Commented On] T198849: Argument processing chokes on python 2 when an argument contains non-ascii

2018-07-05 Thread gerritbot
gerritbot added a comment. Change 443957 merged by jenkins-bot: [pywikibot/core@master] pagegenerators: try..except UnicodeEncodeError on getattr() https://gerrit.wikimedia.org/r/443957TASK DETAILhttps://phabricator.wikimedia.org/T198849EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/p

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread Dvorapa
Dvorapa added a comment. In T198817#4399091, @Xqt wrote: doesn't require files that starts with "{{-start-}}" and ends with "{{-stop-}}" -- we will batch upload 25 000 .wiki files so it will be a tedious task to generate 25 000 files just for this purpose. You may easily add 25 000 delimited en

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread Dvorapa
Dvorapa added a comment. I suggest to improve both pagefromfile.py and add_text.py/basic.py: pagefromfile.py to make the batch uploading as easy as possible. It should be able to read from the stream, from one file or multiple files. add_text.py/basic.py to make the single page change as easy as

[Pywikipedia-bugs] [Maniphest] [Commented On] T187009: Pywikibot documentation build throws too many warnings to console (goal)

2018-07-05 Thread gerritbot
gerritbot added a comment. Change 443918 had a related patch set uploaded (by Dalba; owner: dalba): [pywikibot/core@master] site.py: Improve type hints https://gerrit.wikimedia.org/r/443918TASK DETAILhttps://phabricator.wikimedia.org/T187009EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settin

[Pywikipedia-bugs] [Maniphest] [Commented On] T187009: Pywikibot documentation build throws too many warnings to console (goal)

2018-07-05 Thread Dvorapa
Dvorapa added a comment. https://gerrit.wikimedia.org/r/#/c/pywikibot/core/+/443761/ fixed some of the "more than one target found for cross-reference" warningsTASK DETAILhttps://phabricator.wikimedia.org/T187009EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To:

[Pywikipedia-bugs] [Maniphest] [Updated] T187009: Pywikibot documentation build throws too many warnings to console (goal)

2018-07-05 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAILhttps://phabricator.wikimedia.org/T187009EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: gerritbotCc: zhuyifei1999, Zoranzoki21, gerritbot, Aklapper, pywikibot-bugs-list, Dvorapa, Gaboe420, Versusxo, Maje

[Pywikipedia-bugs] [Maniphest] [Commented On] T198849: Argument processing chokes on python 2 when an argument contains non-ascii

2018-07-05 Thread Multichill
Multichill added a comment. Looks like @Dalba introduced it in https://gerrit.wikimedia.org/r/#/c/pywikibot/core/+/440096/TASK DETAILhttps://phabricator.wikimedia.org/T198849EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999, MultichillCc: gerritbot,

[Pywikipedia-bugs] [Maniphest] [Commented On] T198849: Argument processing chokes on python 2 when an argument contains non-ascii

2018-07-05 Thread gerritbot
gerritbot added a comment. Change 443957 had a related patch set uploaded (by Zhuyifei1999; owner: Zhuyifei1999): [pywikibot/core@master] pagegenerators: try..except UnicodeError on getattr() https://gerrit.wikimedia.org/r/443957TASK DETAILhttps://phabricator.wikimedia.org/T198849EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Updated] T198849: Argument processing chokes on python 2 when an argument contains non-ascii

2018-07-05 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAILhttps://phabricator.wikimedia.org/T198849EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999, gerritbotCc: gerritbot, Dalba, zhuyifei1999, Aklapper, Multichill, pywikibot-bugs-list, .avgas, Gaboe

[Pywikipedia-bugs] [Maniphest] [Edited] T198849: Argument processing chokes on python 2 when an argument contains non-ascii

2018-07-05 Thread .avgas
.avgas updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...tools.irishbot@tools-bastion-03:~$ python /data/project/shared/pywikipedia/core/scripts/replace.py -regex 'scade alle 23.59 del giorno martedì 3 luglio 2018' 'scade alle 23.59 del giorno giovedì 5 luglio 2018' -page:"

[Pywikipedia-bugs] [Maniphest] [Updated] T198849: Argument processing chokes on python 2 when an argument contains non-ascii

2018-07-05 Thread zhuyifei1999
zhuyifei1999 added a subscriber: Dalba.zhuyifei1999 added a comment. I did this diff: zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/mw-dev/pywikibot-core$ git diff diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py index ec06f313..95cf67dd 100644 --- a/pywikibot/pagegenerators.py +

[Pywikipedia-bugs] [Maniphest] [Updated] T198849: Argument processing chokes on python 2 when an argument contains non-ascii

2018-07-05 Thread zhuyifei1999
zhuyifei1999 added a project: Regression.zhuyifei1999 added a comment. shell.py uses sys.argv instread of pywikibot.argvu, I'll just ignore that for now since there isn't really a reason to provide non-ascii args to shell.py.TASK DETAILhttps://phabricator.wikimedia.org/T198849EMAIL PREFERENCEShttps

[Pywikipedia-bugs] [Maniphest] [Claimed] T198849: Argument processing chokes on python 2 when an argument contains non-ascii

2018-07-05 Thread zhuyifei1999
zhuyifei1999 claimed this task.zhuyifei1999 added a comment. I'm debugging this.TASK DETAILhttps://phabricator.wikimedia.org/T198849EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: zhuyifei1999, Aklapper, Multichill, pywikibot-bugs-list, .avgas,

[Pywikipedia-bugs] [Maniphest] [Created] T198849: Argument processing chokes on python 2 when an argument contains non-ascii

2018-07-05 Thread zhuyifei1999
zhuyifei1999 created this task.zhuyifei1999 added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION@.avgas Encountered this error while using replace.py: tools.irishbot@tools-bastion-03:~$ python /data/project/shared/pywikipedia/core/scripts/replac

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread zhuyifei1999
zhuyifei1999 added a comment. In T198817#4399091, @Xqt wrote: You may easily add 25 000 delimited entries to that single file and upload them by a single command at once. Delimiting is a non-solution, unless there are ways to 'escape' delimiters *and* the script can read from non-seekable stream

[Pywikipedia-bugs] [Maniphest] [Commented On] T194950: Include Wikibase dispatch lag in API "maxlag" enforcing

2018-07-05 Thread gerritbot
gerritbot added a comment. Change 443939 had a related patch set uploaded (by Ladsgroup; owner: Amir Sarabadani): [operations/mediawiki-config@master] Set dispatchLagToMaxLagFactor to 60 for wikidata https://gerrit.wikimedia.org/r/443939TASK DETAILhttps://phabricator.wikimedia.org/T194950EMAIL PRE

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread Xqt
Xqt added a comment. doesn't require files that starts with "{{-start-}}" and ends with "{{-stop-}}" -- we will batch upload 25 000 .wiki files so it will be a tedious task to generate 25 000 files just for this purpose. You may easily add 25 000 delimited entries to that single file and upload

[Pywikipedia-bugs] [Maniphest] [Created] T198839: Update Pywikibot class WikidataBot to include Wikimedia import URL (P4656)

2018-07-05 Thread Multichill
Multichill created this task.Multichill added projects: Pywikibot-core, Pywikibot-Wikidata, Wikidata.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONTo improve the traceability of data imported from Wikimedia projects Wikimedia import URL (https://www.wikidata.org/wiki/Pro

[Pywikipedia-bugs] [Maniphest] [Commented On] T198817: edit and create pages

2018-07-05 Thread David_Hedlund
David_Hedlund added a comment. In T198817#4398574, @zhuyifei1999 wrote: In T198817#4398554, @Dvorapa wrote: First of all, the file should have correct Pywikibot license. That's a non-issue. I sent this quick-and-dirty script to FSF so they can use it whatever they want. If license is a concern,