[Pywikipedia-bugs] [Maniphest] [Commented On] T147178: Edit counter gives wrong result in replace.py

2017-08-31 Thread binbot
binbot added a comment. I didn't contribute to bot.py, but someone will surely explain the reason.TASK DETAILhttps://phabricator.wikimedia.org/T147178EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: binbotCc: gerritbot, matej_suchanek, jeblad, Framawiki

[Pywikipedia-bugs] [Maniphest] [Commented On] T147178: Edit counter gives wrong result in replace.py

2017-08-31 Thread binbot
binbot added a comment. In T147178#3567967, @matej_suchanek wrote: The funniest fact at the end: this script has sync/async saving swapped, compared to other standard bots. In other words, with -always ([a]) it saves synchronously, in manual mode ([y]) asynchronously. That's on purpose

[Pywikipedia-bugs] [Maniphest] [Commented On] T147178: Edit counter gives wrong result in replace.py

2017-08-31 Thread binbot
binbot added a comment. In T147178#3568092, @Framawiki wrote: As this bug is still alive a year later, and it only concerns an output that is not essential, I'll submit a patch to temporary disable it. Please don't! Something is not always perfect, so do we throw it away totally? Better warn

[Pywikipedia-bugs] [Maniphest] [Commented On] T109220: Feature request: pass the Page object to the fix in replace.py

2017-08-15 Thread binbot
binbot added a comment. Some use cases that are not covered by multiple fixes: The replacement depends on other parts of the same text. The replacement depends on length of the page (or number of sections) – yes, there is a talk, that a certain replacement should be done on small pages only

[Pywikipedia-bugs] [Maniphest] [Commented On] T147178: replace.py gives a wrong edit result

2017-08-04 Thread binbot
binbot added a comment. Could you provide that custom fix? NOT the screenshot, rather the text.TASK DETAILhttps://phabricator.wikimedia.org/T147178EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: binbotCc: Danmichaelo, Zoranzoki21, Dvorapa, Danny_B, Zppix

[Pywikipedia-bugs] [Maniphest] [Commented On] T168831: Pywikibot documentation build is outdated

2017-06-26 Thread binbot
binbot added a comment. Are these all autogenerated docs?TASK DETAILhttps://phabricator.wikimedia.org/T168831EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: binbotCc: binbot, Multichill, jayvdb, valhallasw, Aklapper, Xqt, pywikibot-bugs-list, Ivana_Isadora

[Pywikipedia-bugs] [Maniphest] [Commented On] T57078: replace.py -match option

2017-06-10 Thread binbot
binbot added a comment. OK. Replace.py is very important for me as I heavily use it for multiple purposes, and I am highly interested in its performance. I contributed a lot to the compat version, but now I have troubles both with using the core and with coming back to development, but I will look

[Pywikipedia-bugs] [Maniphest] [Commented On] T57078: replace.py -match option

2017-06-10 Thread binbot
binbot added a comment. In T57078#3337396, @Dvorapa wrote: -search:'insource://' matches regex inside page content. This is not ideal (doesn't work with ^,$,\s,...), but it usually will do just fine Why do we need not ideal solutions?TASK DETAILhttps://phabricator.wikimedia.org

[Pywikipedia-bugs] [Maniphest] [Commented On] T165911: Get the u'' to '' string conversion over with in Pywikibot

2017-05-28 Thread binbot
binbot added a comment. In T165911#3296955, @valhallasw wrote: Not, they don't. The u'' prefix has been allowed since Python 3.3, which was released in 2012. Official support for Python 3.2 was dropped in Feb 2016. There is absolutely no reason to remove them, apart from 'it looks nicer

[Pywikipedia-bugs] [Maniphest] [Commented On] T165911: Get the u'' to '' string conversion over with in Pywikibot

2017-05-28 Thread binbot
binbot added a comment. Then a better piece of advice would be "Remove u only from scripts with no pending changes", wouldn't it? I think a patch only removing us can be revised on express lane.TASK DETAILhttps://phabricator.wikimedia.org/T165911EMAIL PREFERENCEShttps://phabricator.wik

[Pywikipedia-bugs] [Maniphest] [Updated] T147180: isbn formatting

2016-10-05 Thread binbot
binbot added a comment. T145604 may be relevant. Is it worth to deal with it in two steps?TASK DETAILhttps://phabricator.wikimedia.org/T147180EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, binbotCc: binbot, Aklapper, pywikibot-bugs-list, jayvdb, XZise

[Pywikipedia-bugs] [Maniphest] [Commented On] T144694: Port -first from compat to solve_disambiguation.py

2016-09-25 Thread binbot
binbot added a comment. Thank you!TASK DETAILhttps://phabricator.wikimedia.org/T144694EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: PranavAsty, binbotCc: gerritbot, TerraCodes, valhallasw, Aklapper, pywikibot-bugs-list, binbot, MayS, Lewizho99, Mdupont

[Pywikipedia-bugs] [Maniphest] [Commented On] T72249: Ability to archive a section based on a template status, additional to age

2016-09-19 Thread binbot
binbot added a comment. Hungarian Wikipedia uses this template to prevent the section being archived even if expired: https://hu.wikipedia.org/wiki/Sablon:F%C3%BCgg%C5%91ben It may have a parameter. Currently we use an individual workaround for that, but we woluld like to do

[Pywikipedia-bugs] [Maniphest] [Commented On] T145383: Movepages.py does not ask for admin account

2016-09-12 Thread binbot
binbot added a comment. Thank you. You are basically right, but I would prefer not to use -user if the majority of pages can be treated as bot (for keeping recent changes readable).TASK DETAILhttps://phabricator.wikimedia.org/T145383EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel

[Pywikipedia-bugs] [Maniphest] [Created] T145383: Movepages.py does not ask for admin account

2016-09-12 Thread binbot
binbot created this task.binbot added projects: Pywikibot-core, Pywikibot-compat.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONWhen I want to move pages, and the bot has insufficient rights, it throws an error instead of offering the use of my admin account as other

[Pywikipedia-bugs] [Maniphest] [Commented On] T144692: Port saving options from compat

2016-09-04 Thread binbot
binbot added a comment. I also don't know how much experience you have with frustrating console encoding problems, but I have suffered from them for years. While saved fixes always worked well, it was not the same with command line arguments. I had really, really many problems with that. Now

[Pywikipedia-bugs] [Maniphest] [Commented On] T144692: Port saving options from compat

2016-09-04 Thread binbot
binbot added a comment. I don't believe that listpages.py can handle this funcionality: https://hu.wikipedia.org/wiki/Szerkeszt%C5%91:Bin%C3%A1ris/Fixes_and_functions_HOWTOTASK DETAILhttps://phabricator.wikimedia.org/T144692EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel

[Pywikipedia-bugs] [Maniphest] [Updated] T144692: Port saving options from compat

2016-09-04 Thread binbot
binbot added a comment. I will set up core but that takes more. For the moment I visited https://www.mediawiki.org/wiki/Manual:Pywikibot/Scripts which states: "Compat equivalent: pagegenerators.py and get.py." I also looked into the code and it does not have the complexity of fixes. I

[Pywikipedia-bugs] [Maniphest] [Commented On] T144692: Port saving options from compat

2016-09-04 Thread binbot
binbot added a comment. I don't know listpages as I always used compat. -save/savenew (with flush() after every save) works reliably even for very slow, long search tasks. Even if there is a crush somewhere, or I have to disconnect my computer from network, the result is there, and I can continue

[Pywikipedia-bugs] [Maniphest] [Created] T144694: Port -first from compat

2016-09-04 Thread binbot
binbot created this task.binbot added projects: Pywikibot-solve-disambiguation.py, Pywikibot-compat-to-core, Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONCompat version has a -first option. With this only first linked title from each line (beginning

[Pywikipedia-bugs] [Maniphest] [Updated] T57078: replace.py -match option

2016-09-04 Thread binbot
binbot added a comment. See also T144692.TASK DETAILhttps://phabricator.wikimedia.org/T57078EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: binbotCc: binbot, Omegat, Legoktm, Ricordisamoa, pywikibot-bugs-list, Mdupont, JJMC89

[Pywikipedia-bugs] [Maniphest] [Edited] T144693: Port included exceptions from compat

2016-09-04 Thread binbot
binbot edited the task description. (Show Details) EDIT DETAILS...Without thesethis feature core version is useless for high-volume, repeated work. See also T99365.TASK DETAILhttps://phabricator.wikimedia.org/T144693EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences

[Pywikipedia-bugs] [Maniphest] [Updated] T144693: Port included exceptions from compat

2016-09-04 Thread binbot
binbot added projects: Pywikibot-compat-to-core, Pywikibot-core. TASK DETAILhttps://phabricator.wikimedia.org/T144693EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: binbotCc: Aklapper, pywikibot-bugs-list, binbot, Mdupont, JJMC89, jayvdb, droid

[Pywikipedia-bugs] [Maniphest] [Updated] T144692: Port saving options from compat

2016-09-04 Thread binbot
binbot added projects: Pywikibot-compat-to-core, Pywikibot-core. TASK DETAILhttps://phabricator.wikimedia.org/T144692EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: binbotCc: Aklapper, pywikibot-bugs-list, binbot, Mdupont, JJMC89, jayvdb, droid

[Pywikipedia-bugs] [Maniphest] [Created] T144693: Port included exceptions from compat

2016-09-04 Thread binbot
binbot created this task.binbot added a project: Pywikibot-replace.py.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONCompat version has the 'include' key of 'exceptions' dictionary. This makes possible to maintain general exceptions (used for many fixes) at one place

[Pywikipedia-bugs] [Maniphest] [Created] T144692: Port saving options from compat

2016-09-04 Thread binbot
binbot created this task.binbot added a project: Pywikibot-replace.py.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONIn compat replace.py has these options: -save, -savenew, -savexc, -savexcnew With -save / -savenew the bot will save titles to a file rather than making

[Pywikipedia-bugs] [Maniphest] [Commented On] T57078: replace.py -match option

2016-09-04 Thread binbot
binbot added a comment. I know a workaround for this in compat, but that feature has not been ported to core yet. Hopefully will be soon... (First round: use replace.py "someregex" "foobar" -save:something.txt, then do the actual replacements with -file:something.

[Pywikipedia-bugs] [Maniphest] [Commented On] T134095: ability to find a character and have it replaced with different choices while using replace.py

2016-09-04 Thread binbot
binbot added a comment. @yuvipanda: You don't have to know Python, you only have to know regexes, and copy the function. Thanks for quoting! However, there is a possibility to enhance the bot with this feature.TASK DETAILhttps://phabricator.wikimedia.org/T134095EMAIL PREFERENCEShttps

[Pywikipedia-bugs] [Maniphest] [Merged] T130065: replace.py incorrectly counts number of changes

2016-09-04 Thread binbot
binbot added subscribers: Xqt, Zppix.binbot merged a task: T140542: edit counter gives wrong result for replace.py. TASK DETAILhttps://phabricator.wikimedia.org/T130065EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: binbotCc: Zppix, Xqt, Mpaa, Danny_B

[Pywikipedia-bugs] [Maniphest] [Updated] T140542: edit counter gives wrong result for replace.py

2016-09-04 Thread binbot
binbot closed this task as a duplicate of T130065: replace.py incorrectly counts number of changes. TASK DETAILhttps://phabricator.wikimedia.org/T140542EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: binbotCc: Aklapper, Zppix, Xqt, pywikibot-bugs-list

[Pywikipedia-bugs] [Maniphest] [Commented On] T60546: Captcha support broken

2016-08-25 Thread binbot
binbot added a comment. Dear Merlijn I am sad to remind you that Pywikibot is full of my contributions, even with whole new scripts written by me. We discussed hundred times on the mailing list, how we fell out of developing at the git/Bugzilla catastrophe. (Not only me, but a few other goood

[Pywikipedia-bugs] [Maniphest] [Commented On] T60546: Captcha support broken

2016-08-25 Thread binbot
binbot added a comment. Merlijn: the rela problem is that on one side developers say "no, nobody declared that core has to implement full funcionality of compat" and on the other side compat issues are automatically set to lowest priority. I translate this to human language: whoever ne

[Pywikipedia-bugs] [Maniphest] [Raised Priority] T60546: Captcha support broken

2016-08-25 Thread binbot
binbot raised the priority of this task from "Lowest" to "Low".binbot added a comment. The problem definitely exists. I stull cannot log in with my admin account on huwikipedia. I do nned the bot to delete plenty of pages, but I can't. It is a shame that compat users are

[Pywikipedia-bugs] [Maniphest] [Created] T125312: Find links to non-existing pages

2016-01-30 Thread binbot
binbot created this task. binbot added a subscriber: binbot. binbot added a project: Pywikibot-pagegenerators. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I wanted to modify pages that linked to a deleted image. Command: replace.py -links Links from which page

[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T57689: Implement -save option on replace.py core

2016-01-24 Thread binbot
binbot added a subscriber: binbot. TASK DETAIL https://phabricator.wikimedia.org/T57689 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Omegat, binbot Cc: binbot, Vituzzu, Aklapper, XZise, gerritbot, Omegat, Ricordisamoa, Ninovolador, Xqt, jayvdb

[Pywikipedia-bugs] [Maniphest] [Commented On] T57689: Implement -save option on replace.py core

2016-01-24 Thread binbot
binbot added a comment. There are four similar parameters in compat, and all of them are required for usability of core. I added them to trunk someday and I use all of them on a regular base. They are -save, -savenew, -saveexc and -saveexcnew. Other option is not to deprecate compat

[Pywikipedia-bugs] [Maniphest] [Commented On] T109220: Feature request: pass the Page object to the fix in replace.py

2015-08-19 Thread binbot
binbot added a comment. Xsize has the point. :-) I run several regexes within a fix and I don't want to separate them (details: http://wikimedia.hu/w/images/9/9b/Efficient_and_flexible_text_manipulation%2C_spelling_correction_and_page_collections_with_Pywikibot.ppt). Only one of them should

[Pywikipedia-bugs] [Maniphest] [Commented On] T109220: Feature request: pass the Page object to the fix in replace.py

2015-08-19 Thread binbot
binbot added a comment. I will check it. However, being able to use the page object in a function gives much more flexibility. TASK DETAIL https://phabricator.wikimedia.org/T109220 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: XZise, binbot Cc

[Pywikipedia-bugs] [Maniphest] [Retitled] T109220: Feature request: pass the Page object to the fix in replace.py

2015-08-16 Thread binbot
binbot changed the title from Feature request: pass tha Page object to the fix in replace.py to Feature request: pass the Page object to the fix in replace.py. binbot set Security to None. TASK DETAIL https://phabricator.wikimedia.org/T109220 EMAIL PREFERENCES https

[Pywikipedia-bugs] [Maniphest] [Created] T109220: Feature request: pass tha Page object to the fix in replace.py

2015-08-16 Thread binbot
binbot created this task. binbot added a subscriber: binbot. binbot added a project: Pywikibot-General. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I propose an enhancement of replace.py (may textlib be also involved?). When doing text replacements, sometimes

[Pywikipedia-bugs] [Maniphest] [Commented On] T108783: [FEAT] Implement option for pagegenerators to switch between page and talk page for a given generator

2015-08-12 Thread binbot
binbot added a comment. I want to //search //in namespace 1 and //get results// from namespace 0. Thus I should use -namespace twice which is not possible. Can your proposal cover this case? I imagine a clean ToggleGenerator that wraps around any other one. TASK DETAIL https

[Pywikipedia-bugs] [Maniphest] [Created] T107850: Wikipedia.py logs to the same file when multiple instances run

2015-08-04 Thread binbot
binbot created this task. binbot added a subscriber: binbot. binbot added a project: pywikibot-compat. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I use replace.py to collect candidates for working without interacting Wikipedia (with -xml -save); this saves titles

[Pywikipedia-bugs] [Maniphest] [Triaged] T107850: Wikipedia.py logs to the same file when multiple instances run

2015-08-04 Thread binbot
binbot edited the task description. binbot triaged this task as High priority. binbot set Security to None. TASK DETAIL https://phabricator.wikimedia.org/T107850 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: binbot Cc: Aklapper, pywikibot-bugs-list

<    1   2