[Pywikipedia-bugs] [Maniphest] [Commented On] T151237: pagegenerators.py: use explicit list instead of map() In python3

2016-11-21 Thread gerritbot
gerritbot added a comment. Change 322415 merged by jenkins-bot: pagegenerators.py: use explicit list instead of map() https://gerrit.wikimedia.org/r/322415TASK DETAILhttps://phabricator.wikimedia.org/T151237EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To:

[Pywikipedia-bugs] [Maniphest] [Reassigned] T151237: pagegenerators.py: use explicit list instead of map() In python3

2016-11-21 Thread Dalba
Dalba reassigned this task from Dalba to Mpaa. TASK DETAILhttps://phabricator.wikimedia.org/T151237EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Mpaa, DalbaCc: Dalba, gerritbot, Aklapper, pywikibot-bugs-list, Mpaa, Ramalepe, Magul, MayS, Lewizho99, Mdupont,

[Pywikipedia-bugs] [Maniphest] [Closed] T151237: pagegenerators.py: use explicit list instead of map() In python3

2016-11-21 Thread Dalba
Dalba closed this task as "Resolved".Dalba claimed this task. TASK DETAILhttps://phabricator.wikimedia.org/T151237EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DalbaCc: gerritbot, Aklapper, pywikibot-bugs-list, Mpaa, Ramalepe, Magul, MayS, Lewizho99,

[Pywikipedia-bugs] [Maniphest] [Commented On] T151248: test_https_cert_error failed on Travis CI

2016-11-21 Thread Magul
Magul added a comment. print([wl.__dict__ for wl in warning_log]) just before fail in test gave [ { 'category': , 'line': None, '_category_name': 'ResourceWarning', 'message': ResourceWarning('unclosed ',), 'file': None, 'lineno': 1191,

[Pywikipedia-bugs] [Maniphest] [Created] T151248: test_https_cert_error failed on Travis CI

2016-11-21 Thread Magul
Magul created this task.Magul added projects: Pywikibot-core, Pywikibot-tests. TASK DESCRIPTION HttpsCertificateTestCase.test_https_cert_error self = def test_https_cert_error(self): """Test if http.fetch respects disable_ssl_certificate_validation."""

[Pywikipedia-bugs] [Maniphest] [Block] T151145: Make Travis (and Appveyor) pass again

2016-11-21 Thread Magul
Magul created subtask T151248: test_https_cert_error failed on Travis CI. TASK DETAILhttps://phabricator.wikimedia.org/T151145EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: Aklapper, Magul, pywikibot-bugs-list, MayS, Mdupont, JJMC89, jayvdb, Dalba,

[Pywikipedia-bugs] [Maniphest] [Commented On] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Magul
Magul added a comment. Could You, please raport new issue (with clean comment history) for improve logging when bot is logged as OAuth (and maybe bot password)?TASK DETAILhttps://phabricator.wikimedia.org/T151163EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To:

[Pywikipedia-bugs] [Maniphest] [Commented On] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Multichill
Multichill added a comment. In T151163#2812109, @Framawiki wrote: .. Thank you ! Do you think that it can be fine from mediawiki to show a better error message ? Or Pywikibot could do more. Pywikibot could check before editing if it has a certain right or list the rights it has when it runs

[Pywikipedia-bugs] [Maniphest] [Commented On] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Framawiki
Framawiki added a comment. .. Thank you ! Do you think that it can be fine from mediawiki to show a better error message ?TASK DETAILhttps://phabricator.wikimedia.org/T151163EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: FramawikiCc: Magul, Multichill,

[Pywikipedia-bugs] [Maniphest] [Closed] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Magul
Magul closed this task as "Invalid".Magul added a comment. It's not spam at all. If You will find any other bug don't hesitate to report. It looks that Your OAuth consumer doesn't have rights to edit custem JS/CSS (see: 1). I'm closing it.TASK DETAILhttps://phabricator.wikimedia.org/T151163EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Framawiki
Framawiki added a comment. OAuth creds in user-config. I'll try with normal password...TASK DETAILhttps://phabricator.wikimedia.org/T151163EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: FramawikiCc: Magul, Multichill, Aklapper, pywikibot-bugs-list,

[Pywikipedia-bugs] [Maniphest] [Commented On] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Magul
Magul added a comment. >>> import pywikibot >>> d = pywikibot.Page(pywikibot.Site('fr', 'wikipedia'), "Utilisateur:MagulBot/categories.js") >>> d.exists() False >>> d.text = 'T151163' >>> d.save() Page [[Utilisateur:MagulBot/categories.js]] saved ... >>> pywikibot.Site('fr',

[Pywikipedia-bugs] [Maniphest] [Commented On] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Framawiki
Framawiki added a comment. API Sandbox do job...TASK DETAILhttps://phabricator.wikimedia.org/T151163EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: FramawikiCc: Magul, Multichill, Aklapper, pywikibot-bugs-list, Framawiki, MayS, Mdupont, JJMC89, jayvdb, Dalba,

[Pywikipedia-bugs] [Maniphest] [Commented On] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Framawiki
Framawiki added a comment. Another test with Framabot's user-config, to save text on an existing page. >>> import pywikibot >>> d = pywikibot.Page(pywikibot.Site('fr', 'wikipedia'), "Utilisateur:Framabot/test.js") >>> d.exists() True >>> d.text u'hello !' >>> d.text = u'test' >>> d.save(u'test

[Pywikipedia-bugs] [Maniphest] [Commented On] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Framawiki
Framawiki added a comment. And it's ok if I edit an existing JS page with main account... >>> import pywikibot >>> d = pywikibot.Page(pywikibot.Site('fr', 'wikipedia'), "Utilisateur:Framawiki/js/editTitre.js") >>> d.text = 'hello' >>> d.save('test') Password for user Framawiki on wikipedia:fr (no

[Pywikipedia-bugs] [Maniphest] [Unblock] T151145: Make Travis (and Appveyor) pass again

2016-11-21 Thread Mpaa
Mpaa closed subtask T151168: test_pageid is failing on Travis for zh.wikisource as "Resolved". TASK DETAILhttps://phabricator.wikimedia.org/T151145EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Magul, MpaaCc: Aklapper, Magul, pywikibot-bugs-list, MayS,

[Pywikipedia-bugs] [Maniphest] [Updated] T151237: pagegenerators.py: use explicit list instead of map() In python3

2016-11-21 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAILhttps://phabricator.wikimedia.org/T151237EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: gerritbotCc: gerritbot, Aklapper, pywikibot-bugs-list, Mpaa, Ramalepe, Magul, MayS, Lewizho99, Mdupont, JJMC89,

[Pywikipedia-bugs] [Maniphest] [Unassigned] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Framawiki
Framawiki removed Framawiki as the assignee of this task.Framawiki added a comment. Same shell for all these commands : >>> import pywikibot >>> d = pywikibot.Page(pywikibot.Site('fr', 'wikipedia'), "Utilisateur:Framabot/categories.js") >>> d.text u'' >>> d.exists() False >>> d.text = 'hello' >>>

[Pywikipedia-bugs] [Maniphest] [Commented On] T151168: test_pageid is failing on Travis for zh.wikisource

2016-11-21 Thread gerritbot
gerritbot added a comment. Change 322597 merged by jenkins-bot: Change of pagegenerator in test_pageid https://gerrit.wikimedia.org/r/322597TASK DETAILhttps://phabricator.wikimedia.org/T151168EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Magul,

[Pywikipedia-bugs] [Maniphest] [Created] T151237: pagegenerators.py: use explicit list instead of map() In python3

2016-11-21 Thread Mpaa
Mpaa created this task.Mpaa added projects: Pywikibot-core, Pywikibot-pagegenerators.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONmap() will create a , which will be emptied after first use. Second comparison will throw an error. Use explicitly a list instead. python3

[Pywikipedia-bugs] [Maniphest] [Commented On] T151237: pagegenerators.py: use explicit list instead of map() In python3

2016-11-21 Thread gerritbot
gerritbot added a comment. Change 322415 had a related patch set uploaded (by Mpaa): pagegenerators.py: use explicit list instead of map() https://gerrit.wikimedia.org/r/322415TASK DETAILhttps://phabricator.wikimedia.org/T151237EMAIL

[Pywikipedia-bugs] [Maniphest] [Reassigned] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Magul
Magul reassigned this task from Magul to Framawiki. TASK DETAILhttps://phabricator.wikimedia.org/T151163EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Framawiki, MagulCc: Magul, Multichill, Aklapper, pywikibot-bugs-list, Framawiki, MayS, Mdupont, JJMC89,

[Pywikipedia-bugs] [Maniphest] [Commented On] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Magul
Magul added a comment. Could You double-confirm that You have been logged in as Framabot. I was able to recreate issue, when I was logged in on bot account and tried to change my personal JS file.TASK DETAILhttps://phabricator.wikimedia.org/T151163EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Multichill
Multichill added a comment. Using the api sandbox I can edit, see https://en.wikipedia.org/w/index.php?title=User%3AMultichill%2Fcommon.css=revision=750774374=665737425. I used https://en.wikipedia.org/wiki/Special:ApiSandbox#action=""> You should try logging into your bot account and try this

[Pywikipedia-bugs] [Maniphest] [Claimed] T151163: Pywikibot cannot save javascript protected page

2016-11-21 Thread Magul
Magul claimed this task. TASK DETAILhttps://phabricator.wikimedia.org/T151163EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: Aklapper, pywikibot-bugs-list, Framawiki, Magul, MayS, Mdupont, JJMC89, jayvdb, Dalba, Masti, Alchimista,

[Pywikipedia-bugs] [Maniphest] [Commented On] T150210: Make WbQuantity handle case without errors

2016-11-21 Thread Strainu
Strainu added a comment. Since backwards compatibility will be broken anyway, the question is if we should keep the extra code that handles older versions of Wikibase. Is there any data on the number of Wikibase installations out there?TASK DETAILhttps://phabricator.wikimedia.org/T150210EMAIL

[Pywikipedia-bugs] [Maniphest] [Reopened] T150210: Make WbQuantity handle case without errors

2016-11-21 Thread Magul
Magul reopened this task as "Open". TASK DETAILhttps://phabricator.wikimedia.org/T150210EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lokal_Profil, MagulCc: daniel, Magul, ChongDae, Strainu, gerritbot, Aklapper, Lokal_Profil, pywikibot-bugs-list, Ramalepe,

[Pywikipedia-bugs] [Maniphest] [Commented On] T150210: Make WbQuantity handle case without errors

2016-11-21 Thread gerritbot
gerritbot added a comment. Change 322672 had a related patch set uploaded (by Lokal Profil): Require site object only for older MediaWiki installations https://gerrit.wikimedia.org/r/322672TASK DETAILhttps://phabricator.wikimedia.org/T150210EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T150210: Make WbQuantity handle case without errors

2016-11-21 Thread Lokal_Profil
Lokal_Profil added a comment. OK. So the current patch was merged which allows pywikibot to go on dealing with Wikidata. To avoid the scenario which @daniel mentions a follow-up patch can be submitted which changes _require_errors() to False instead if no site object is provided. I we put

[Pywikipedia-bugs] [Maniphest] [Closed] T151092: Change in quantities broke pywikibot

2016-11-21 Thread Multichill
Multichill closed this task as "Resolved".Multichill claimed this task.Multichill added a subscriber: Lokal_Profil.Multichill added a comment. Thanks @Lokal_Profil for fixing and @Ladsgroup for getting it out.TASK DETAILhttps://phabricator.wikimedia.org/T151092EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T150210: Make WbQuantity handle case without errors

2016-11-21 Thread daniel
daniel added a comment. @Strainu defaulting to +/-0 was nearly always definitely wrong. +/-0 means ABSOLUTE precision. That does not exist for any measured quantity, only for definitions and exact counts. Omitted bounds does not have the same semantics as +/-0 at all. A bot is going to change

[Pywikipedia-bugs] [Maniphest] [Commented On] T150521: pywikibot.data.sparql SparqlQuery.select() crashes on OPTIONAL values

2016-11-21 Thread gerritbot
gerritbot added a comment. Change 322648 had a related patch set uploaded (by Gerrit Patch Uploader): T150521: Don't crash on queries with optional values https://gerrit.wikimedia.org/r/322648TASK DETAILhttps://phabricator.wikimedia.org/T150521EMAIL

[Pywikipedia-bugs] [Maniphest] [Updated] T150521: pywikibot.data.sparql SparqlQuery.select() crashes on OPTIONAL values

2016-11-21 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAILhttps://phabricator.wikimedia.org/T150521EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: gerritbotCc: gerritbot, Aklapper, Smalyshev, pywikibot-bugs-list, Multichill, Ramalepe, EBjune, mschwarzer, Avner,

[Pywikipedia-bugs] [Maniphest] [Closed] T150210: Make WbQuantity handle case without errors

2016-11-21 Thread Magul
Magul closed this task as "Resolved". TASK DETAILhttps://phabricator.wikimedia.org/T150210EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lokal_Profil, MagulCc: Magul, ChongDae, Strainu, gerritbot, Aklapper, Lokal_Profil, pywikibot-bugs-list, Ramalepe, MayS,

[Pywikipedia-bugs] [Maniphest] [Commented On] T150210: Make WbQuantity handle case without errors

2016-11-21 Thread gerritbot
gerritbot added a comment. Change 320649 merged by jenkins-bot: [Breaking]Make uncertainties in WbQuantity optional https://gerrit.wikimedia.org/r/320649TASK DETAILhttps://phabricator.wikimedia.org/T150210EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To:

[Pywikipedia-bugs] [Maniphest] [Commented On] T151092: Change in quantities broke pywikibot

2016-11-21 Thread Ladsgroup
Ladsgroup added a comment. This should solve it: https://gerrit.wikimedia.org/r/#/c/320649/2 (just got merged)TASK DETAILhttps://phabricator.wikimedia.org/T151092EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: LadsgroupCc: aude, TerraCodes, Luke081515, Jay8g,

[Pywikipedia-bugs] [Maniphest] [Updated] T151150: test_logevents_default is failing on Travis

2016-11-21 Thread Magul
Magul added a subscriber: Xqt.Magul merged a task: T151019: test_logevents_default fails. TASK DETAILhttps://phabricator.wikimedia.org/T151150EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MagulCc: Xqt, gerritbot, Aklapper, pywikibot-bugs-list, Magul,

[Pywikipedia-bugs] [Maniphest] [Merged] T151019: test_logevents_default fails

2016-11-21 Thread Magul
Magul closed this task as a duplicate of T151150: test_logevents_default is failing on Travis. TASK DETAILhttps://phabricator.wikimedia.org/T151019EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, MagulCc: Aklapper, Xqt, pywikibot-bugs-list, Magul, MayS,

[Pywikipedia-bugs] [Maniphest] [Updated] T151092: Change in quantities broke pywikibot

2016-11-21 Thread Lydia_Pintscher
Lydia_Pintscher added a comment. Same as T150210?TASK DETAILhttps://phabricator.wikimedia.org/T151092EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lydia_PintscherCc: aude, TerraCodes, Luke081515, Jay8g, hoo, Ladsgroup, Lydia_Pintscher, Aklapper, Multichill,