[Pywikipedia-bugs] [Maniphest] [Closed] T98591: hookaborted while fixing redirects, replacing text, moving categories etc.

2015-06-09 Thread Wesalius
Wesalius closed this task as Resolved. Wesalius claimed this task. Wesalius added a comment. Sorry about not reporting back, I forgot. After reporting this bug we moved to a new version of mediawiki and that resolved this problem. Thank you for your concern. P.S.: The antispam questions

[Pywikipedia-bugs] [Maniphest] [Created] T108446: Cosmetic_changes.py crashes on wrong digits in ISBN

2015-08-08 Thread Wesalius
Wesalius created this task. Wesalius added a subscriber: Wesalius. Wesalius added a project: Pywikibot-Cosmetic-changes. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I ran cc with -newpages:500, after encountering page with wrong number of digits in ISBN cc ended

[Pywikipedia-bugs] [Maniphest] [Commented On] T115643: Allow configuration of the "nobots" template name (future request)

2015-10-24 Thread Wesalius
Wesalius added a comment. Hi, I just figured an easy workaround to this, so you guys can focus more of your programming power to other bugs. While running replaces I can use -excepttext:"{{Template_name" and should be achieving exactly what I need, right? TASK DETA

[Pywikipedia-bugs] [Maniphest] [Created] T116904: Enable user-fixes.py in user-config.py (future request)

2015-10-28 Thread Wesalius
Wesalius created this task. Wesalius added a subscriber: Wesalius. Wesalius added a project: pywikibot-core. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Would it be possible to enable user-fixes.py through user-config.py similarly to "cosmetic_changes = True&

[Pywikipedia-bugs] [Maniphest] [Created] T116585: 'NoneType' object has no attribute '__getitem__'

2015-10-26 Thread Wesalius
Wesalius created this task. Wesalius added a subscriber: Wesalius. Wesalius added a project: Pywikibot-replace.py. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION While running replace.py on non-WMF wiki I got this error. ``` Pywikibot: [https] r-pywikibot

[Pywikipedia-bugs] [Maniphest] [Created] T117176: Unify name of parameters -pairs and -replacementfile in scripts

2015-10-30 Thread Wesalius
Wesalius created this task. Wesalius added a subscriber: Wesalius. Wesalius added a project: pywikibot-core. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION To my understanding the parameter -pairs in movepages.py is equal to -replacementfile in replace.py. It would

[Pywikipedia-bugs] [Maniphest] [Commented On] T117176: Unify name of parameters -pairs and -replacementfile in scripts

2015-11-06 Thread Wesalius
Wesalius added a comment. -pagepairs or -replacementfile for both sounds good to me TASK DETAIL https://phabricator.wikimedia.org/T117176 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Wesalius Cc: StudiesWorld, Mpaa, Aklapper, Wesalius, pywikibot

[Pywikipedia-bugs] [Maniphest] [Created] T115821: Add options for category.py remove action

2015-10-18 Thread Wesalius
Wesalius created this task. Wesalius added a subscriber: Wesalius. Wesalius added a project: Pywikibot-category.py. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Right now you can use -cat option with add action, but for instance I often need to remove categories

[Pywikipedia-bugs] [Maniphest] [Created] T115643: Allow configuration of the "nobots" template name (future request)

2015-10-15 Thread Wesalius
Wesalius created this task. Wesalius added a subscriber: Wesalius. Wesalius added a project: pywikibot-core. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION There is a [[ https://en.wikipedia.org/wiki/Template:Bots | nobots template ]] now and I would really

[Pywikipedia-bugs] [Maniphest] [Created] T105620: Stuck at retrieving pages

2015-07-11 Thread Wesalius
Wesalius created this task. Wesalius added a subscriber: Wesalius. Wesalius added a project: Pywikibot-category.py. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION When trying to move categories on cs.wiki with ``` Pywikibot: [https] r-pywikibot-core.git (0222b40

[Pywikipedia-bugs] [Maniphest] [Commented On] T105620: Stuck at retrieving pages

2015-07-12 Thread Wesalius
Wesalius added a comment. python pwb.py category.py move -v Please enter the old name of the category: Fotbalisté Helsingborgu Please enter the new name of the category: Fotbalisté Helsingborg IF TASK DETAIL https://phabricator.wikimedia.org/T105620 EMAIL PREFERENCES https

[Pywikipedia-bugs] [Maniphest] [Commented On] T105620: cosmetic_changes hangs or forms an infinite loop

2015-07-12 Thread Wesalius
Wesalius added a comment. True, cosmetic changes were causing it. TASK DETAIL https://phabricator.wikimedia.org/T105620 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Wesalius Cc: Xqt, Aklapper, Wesalius, pywikibot-bugs-list, Malyacko, P.Copp

[Pywikipedia-bugs] [Maniphest] [Created] T113822: No handlers could be found for logger "pywiki"

2015-09-25 Thread Wesalius
Wesalius created this task. Wesalius added a subscriber: Wesalius. Wesalius added a project: pywikibot-core. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I get the No handlers could be found for logger "pywiki" message everytime I run pywikibot. I dont

[Pywikipedia-bugs] [Maniphest] [Commented On] T113822: No handlers could be found for logger "pywiki"

2015-09-25 Thread Wesalius
Wesalius added a comment. No it doesnt break ;-) TASK DETAIL https://phabricator.wikimedia.org/T113822 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Wesalius Cc: jayvdb, Aklapper, Wesalius, pywikibot-bugs-list

[Pywikipedia-bugs] [Maniphest] [Created] T129529: Keep sortkeys when moving category

2016-03-10 Thread Wesalius
Wesalius created this task. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION As first mentioned in [[https://phabricator.wikimedia.org/T95804]] I do not see a reason, why by default category.py should remove sortkeys in categories that were very probably added

[Pywikipedia-bugs] [Maniphest] [Commented On] T155356: Prevent pagefromfile.py from inserting articles name into the created article

2017-01-15 Thread Wesalius
Wesalius added a comment. Just found out I can switch this function of with -notitle switch, but the original request stays in place. This should be opt-in function.TASK DETAILhttps://phabricator.wikimedia.org/T155356EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel

[Pywikipedia-bugs] [Maniphest] [Created] T155356: Prevent pagefromfile.py from inserting articles name into the created article

2017-01-15 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONThe documentation states The pagename will be the first headword in your textfile (the first word between ''' '''). It is currently automatically inserted

[Pywikipedia-bugs] [Maniphest] [Closed] T146609: Unable to find editor for files *.py when using pywikibot as library

2016-10-04 Thread Wesalius
Wesalius closed this task as "Resolved".Wesalius claimed this task.Wesalius added a comment. I dont have a good explanation, but I cleaned my system of all old python installations, cleaned out the system variables and installed python 3.5.2 and pywikibot library anew and everything now

[Pywikipedia-bugs] [Maniphest] [Edited] T147229: AttributeError: 'Family' object has no attribute 'site'

2016-10-07 Thread Wesalius
Wesalius edited the task description. (Show Details) EDIT DETAILS...File "C:\Users\JonyUser\Dropbox\BOT\core\pywikibot\site.py", line 896, in __getattr__...File "C:\Users\JonyUser\Dropbox\BOT\core\pywikibot\family.py", line 891, in __getattribute__...File "C:\Users\JonyUs

[Pywikipedia-bugs] [Maniphest] [Commented On] T147654: TypeError when redirecting output of listpages.py to file

2016-10-09 Thread Wesalius
Wesalius added a comment. Did you run it with python 3? (I do as I stated in the description). Besides that I cant think of what should be the problem...TASK DETAILhttps://phabricator.wikimedia.org/T147654EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences

[Pywikipedia-bugs] [Maniphest] [Created] T146609: Unable to find editor for files *.py when importing pywikibot

2016-09-25 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONInstalled pywikibot using pip (Metadata-Version: 2.0, Name: pywikibot, Version: 2.0rc5) when running my own script with Python 3.5.1 containing import

[Pywikipedia-bugs] [Maniphest] [Closed] T147229: AttributeError: 'Family' object has no attribute 'site'

2016-10-03 Thread Wesalius
Wesalius closed this task as "Resolved". TASK DETAILhttps://phabricator.wikimedia.org/T147229EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Aklapper, Wesalius, pywikibot-bugs-list, MayS, Mdupont, JJMC

[Pywikipedia-bugs] [Maniphest] [Commented On] T147229: AttributeError: 'Family' object has no attribute 'site'

2016-10-03 Thread Wesalius
Wesalius added a comment. resolved since I was missusing ItemPage.fromPage since ItemPage was enough.TASK DETAILhttps://phabricator.wikimedia.org/T147229EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Aklapper, Wesalius, pywikibot-bugs-list

[Pywikipedia-bugs] [Maniphest] [Retitled] T146609: Unable to find editor for files *.py when using pywikibot as library

2016-09-25 Thread Wesalius
Wesalius changed the title from "Unable to find editor for files *.py when importing pywikibot" to "Unable to find editor for files *.py when using pywikibot as library". TASK DETAILhttps://phabricator.wikimedia.org/T146609EMAIL PREFERENCEShttps://phabricator.wikimedi

[Pywikipedia-bugs] [Maniphest] [Commented On] T146609: Unable to find editor for files *.py when using pywikibot as library

2016-09-26 Thread Wesalius
Wesalius added a comment. when I move the script to "core" folder where pwb.py etc. is then it worksTASK DETAILhttps://phabricator.wikimedia.org/T146609EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Aklapper, pywikibot-bugs-list, Wesa

[Pywikipedia-bugs] [Maniphest] [Commented On] T148912: module 'pywikibot.pagegenerators' has no attribute 'WikidataSPARQLPageGenerator'

2016-10-29 Thread Wesalius
Wesalius added a comment. Ok. I dont really understand the situation around 2.0/branches since I am an end user and not a developer. But still I would like to thank everybody working on pywikibot for all the time they are comitting.TASK DETAILhttps://phabricator.wikimedia.org/T148912EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T148912: module 'pywikibot.pagegenerators' has no attribute 'WikidataSPARQLPageGenerator'

2016-10-29 Thread Wesalius
Wesalius added a comment. Ok. Is there a way to get the "safe" release with pip?TASK DETAILhttps://phabricator.wikimedia.org/T148912EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Xqt, jayvdb, Aklapper, Wesalius, pywikibot-bugs-list, May

[Pywikipedia-bugs] [Maniphest] [Commented On] T148795: MemoryError when replacing using xml dump

2016-11-05 Thread Wesalius
Wesalius added a comment. It was one of the regular cswiki dumps, so around 600 Mb. I think it crashed right at the start (the reason why I only think is that I went through complete switch from win to tux with drive reformatting a day ago so I cant reproduce it right away).TASK DETAILhttps

[Pywikipedia-bugs] [Maniphest] [Created] T148912: module 'pywikibot.pagegenerators' has no attribute 'WikidataSPARQLPageGenerator'

2016-10-23 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONWhen running this short script: import pywikibot as pwb from pywikibot import pagegenerators as pg QUERY = "SELECT ?item ?value WHERE {?item wdt:

[Pywikipedia-bugs] [Maniphest] [Created] T148795: MemoryError when replacing using xml dump

2016-10-20 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot-replace.py.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONWhen executing py pwb.py replace -exceptinsidetag:ref -exceptinsidetag:hyperlink -file:"cswiki-20161020-pages-articles.xml" -summary:&

[Pywikipedia-bugs] [Maniphest] [Created] T151438: edit pages only if edit size is above treshold

2016-11-23 Thread Wesalius
Wesalius created this task.Wesalius added projects: Pywikibot-Cosmetic-changes, Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONIt would be really useful if pywikibot edits could be set up to happen only if the size of the edit would surpass treshold

[Pywikipedia-bugs] [Maniphest] [Retitled] T151438: edit pages only if edit size/ńumber of characters changed is above treshold

2016-11-23 Thread Wesalius
Wesalius changed the title from "edit pages only if edit size is above treshold" to "edit pages only if edit size/ńumber of characters changed is above treshold".Wesalius edited the task description. (Show Details) EDIT DETAILS...Especially useful if you want to run standal

[Pywikipedia-bugs] [Maniphest] [Created] T151526: AttributeError: 'NoneType' object has no attribute 'calendarmodel'

2016-11-24 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONdate_value = pwb.WbTime(year=2016, month=11) in a script gives error pywikibot/__init__.py", line 499, in __init__ calendarmodel = site.calendar

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

2016-11-24 Thread Wesalius
Wesalius added a comment. Is my .err content related to this (solved by the patch)? WARNING: WbQuantity now expects a 'site' parameter. This is needed to ensure correct handling of error bounds. WARNING: WbQuantity now expects a 'site' parameter. This is needed to ensure correct handling of error

[Pywikipedia-bugs] [Maniphest] [Created] T151706: WbQuantity now expects a 'site' parameter

2016-11-27 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONNow when writing statements to wd using pwb I get WbQuantity now expects a 'site' parameter. This is needed to ensure correct handling of error bounds

[Pywikipedia-bugs] [Maniphest] [Closed] T151526: AttributeError: 'NoneType' object has no attribute 'calendarmodel'

2016-11-24 Thread Wesalius
Wesalius closed this task as "Invalid".Wesalius added a comment. I am sorry, thank you for taking a look at it, it was my bad, I targeted a non-wikibase wiki with my user-config :(TASK DETAILhttps://phabricator.wikimedia.org/T151526EMAIL PREFERENCEShttps://phabricator.wikimedia.org/sett

[Pywikipedia-bugs] [Maniphest] [Closed] T147654: win32_unicode does not correctly handle different console configurations under Python 3

2016-10-31 Thread Wesalius
Wesalius closed this task as "Resolved". TASK DETAILhttps://phabricator.wikimedia.org/T147654EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: valhallasw, WesaliusCc: Dalba, David.Mirth, gerritbot, valhallasw, Xqt, Aklapper, pywikibot-bugs-list, Wesa

[Pywikipedia-bugs] [Maniphest] [Updated] T148795: MemoryError when replacing using xml dump

2016-11-04 Thread Wesalius
Wesalius added a project: Pywikibot-core. TASK DETAILhttps://phabricator.wikimedia.org/T148795EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Aklapper, pywikibot-bugs-list, Wesalius, MayS, Mdupont, JJMC89, jayvdb, Alchimista

[Pywikipedia-bugs] [Maniphest] [Commented On] T151706: WbQuantity now expects a 'site' parameter

2016-12-02 Thread Wesalius
Wesalius added a comment. Okay thanks. From my POV it is resolved, feel free to close the bug whenever.TASK DETAILhttps://phabricator.wikimedia.org/T151706EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Lokal_Profil, Magul, Dalba, Aklapper

[Pywikipedia-bugs] [Maniphest] [Commented On] T151706: WbQuantity now expects a 'site' parameter

2016-12-02 Thread Wesalius
Wesalius added a comment. Now I still get the warning but I can proceed to edit wd without a problem.TASK DETAILhttps://phabricator.wikimedia.org/T151706EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Lokal_Profil, Magul, Dalba, Aklapper, Wesalius

[Pywikipedia-bugs] [Maniphest] [Commented On] T151438: edit pages only if edit size/number of characters changed is above treshold

2018-05-25 Thread Wesalius
Wesalius added a comment. I am not completely sure what I meant by pwb already estimates that (deleted from the description now, but I guess it was either that pwb shows for ex. @@ -130,2 +130,2 @@ above the proposed edit or it tells you the bytes it has changed after the save edit (which

[Pywikipedia-bugs] [Maniphest] [Edited] T151438: edit pages only if edit size/number of characters changed is above treshold

2018-05-25 Thread Wesalius
Wesalius updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...Maybe it would be easier to make this happen if the treshold would be in "number of characters changed" since pwb already estimates thatTASK DETAILhttps://phabricator.wikimedia.org/T151438EMAIL PREFER

[Pywikipedia-bugs] [Maniphest] [Closed] T196562: Pagefromfile.py script returns errors

2018-06-09 Thread Wesalius
Wesalius closed this task as "Resolved". TASK DETAILhttps://phabricator.wikimedia.org/T196562EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, WesaliusCc: Wesalius, gerritbot, Xqt, Framawiki, Dvorapa, Aklapper, pywikibot-bugs-list, Sc4s2cg

[Pywikipedia-bugs] [Maniphest] [Commented On] T196562: Pagefromfile.py script returns errors

2018-06-09 Thread Wesalius
Wesalius added a comment. I tested the Change 439446 on 2 different wikis, seems to work fine, no error produced.TASK DETAILhttps://phabricator.wikimedia.org/T196562EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Xqt, WesaliusCc: Wesalius, gerritbot, Xqt

[Pywikipedia-bugs] [Maniphest] [Created] T196851: Add "no. of pages changed" output to pwb scripts

2018-06-10 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONReplace.py outputs how many pages were affected during its run, I find this information useful and want to add this output to other scripts as well.TASK

[Pywikipedia-bugs] [Maniphest] [Triaged] T196851: Add "no. of pages changed" output to pwb scripts

2018-06-10 Thread Wesalius
Wesalius triaged this task as "Low" priority. TASK DETAILhttps://phabricator.wikimedia.org/T196851EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Aklapper, Wesalius, pywikibot-bugs-list, Sc4s2cg, Magul, Tbscho, MayS, Salgo60, Mdupo

[Pywikipedia-bugs] [Maniphest] [Commented On] T196851: Add "no. of pages changed" output to pwb scripts

2018-06-10 Thread Wesalius
Wesalius added a comment. so the thing to do here is to check where and why the scripts overwrite the basebot run method?TASK DETAILhttps://phabricator.wikimedia.org/T196851EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Xqt, Framawiki, Aklapper

[Pywikipedia-bugs] [Maniphest] [Created] T196777: AttributeError: 'tuple' object has no attribute 'site' when running pagefromfile.py

2018-06-08 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONERROR: AttributeError: 'tuple' object has no attribute 'site' Traceback (most recent call last): File "pwb.py", line 251, in if not main

[Pywikipedia-bugs] [Maniphest] [Edited] T196777: AttributeError: 'tuple' object has no attribute 'site' when running pagefromfile.py

2018-06-08 Thread Wesalius
Wesalius updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...He was apparently right, because , since checking out 31dc0fec0f4f6a1249fe094a4504d4055d664c46 bypassed the problem and the script ran fine. TASK DETAILhttps://phabricator.wikimedia.org/T196777EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T197529: 'instancemethod' object has no attribute '__full_name__'

2018-06-17 Thread Wesalius
Wesalius added a comment. I am a noob programer, what is the outcome for me? That it might change again in the future?TASK DETAILhttps://phabricator.wikimedia.org/T197529EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: gerritbot, zhuyifei1999

[Pywikipedia-bugs] [Maniphest] [Created] T197529: 'instancemethod' object has no attribute '__full_name__'

2018-06-17 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONTried to login from a debian 8 machine to a non wmf wiki with this version of pwb: Pywikibot: [https] wikimedia-pywikibot.git (6f79910, g9698, 2018/06/16

[Pywikipedia-bugs] [Maniphest] [Commented On] T197529: 'instancemethod' object has no attribute '__full_name__'

2018-06-17 Thread Wesalius
Wesalius added a comment. I tried your patched version, no error now, works like a charm.TASK DETAILhttps://phabricator.wikimedia.org/T197529EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: gerritbot, zhuyifei1999, Aklapper, Wesalius, pywikibot

[Pywikipedia-bugs] [Maniphest] [Commented On] T196851: Evaluate BaseBot class usage across scripts

2018-06-11 Thread Wesalius
Wesalius added a comment. In T196851#4270839, @Xqt wrote: In T196851#4270602, @Wesalius wrote: so the thing to do here is to check where and why the scripts overwrite the basebot run method? Yes. And which script does not use BaseBot classes. @Xqt Can you please name an exemplary script

[Pywikipedia-bugs] [Maniphest] [Retitled] T196851: Evaluate BaseBot class usage across scripts

2018-06-11 Thread Wesalius
Wesalius renamed this task from "Add "no. of pages changed" output to pwb scripts" to "Evaluate BaseBot class usage across scripts".Wesalius updated the task description. (Show Details) CHANGES TO TASK DESCRIPTIONReplace.py outputs how many pages were a

[Pywikipedia-bugs] [Maniphest] [Claimed] T192266: Add %(semester) to the list of time variables allowed

2018-06-04 Thread Wesalius
Wesalius claimed this task. TASK DETAILhttps://phabricator.wikimedia.org/T192266EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Framawiki, Aklapper, pywikibot-bugs-list, MarcoAurelio, Asad_Ali_Palijo, Lahi, Soteriaspace, RazeSoldier

[Pywikipedia-bugs] [Maniphest] [Closed] T148795: MemoryError when replacing using xml dump

2018-06-05 Thread Wesalius
Wesalius closed this task as "Invalid".Wesalius added a comment. did not happen again, if someone else gets this error, feel free to reopenTASK DETAILhttps://phabricator.wikimedia.org/T148795EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Wesal

[Pywikipedia-bugs] [Maniphest] [Closed] T196382: Fix treatment of %(quarter) variable value in archivebot.py

2018-06-04 Thread Wesalius
Wesalius closed this task as "Invalid". TASK DETAILhttps://phabricator.wikimedia.org/T196382EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: gerritbot, Aklapper, pywikibot-bugs-list, Urbanecm, Wesalius, Versusxo, Majesticalreaper22, G

[Pywikipedia-bugs] [Maniphest] [Closed] T192266: Add %(semester) to the list of time variables allowed

2018-06-04 Thread Wesalius
Wesalius closed this task as "Resolved". TASK DETAILhttps://phabricator.wikimedia.org/T192266EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: gerritbot, Framawiki, Aklapper, pywikibot-bugs-list, MarcoAurelio, Versusxo, Majestic

[Pywikipedia-bugs] [Maniphest] [Created] T196382: Fix treatment of %(quarter) variable value in archivebot.py

2018-06-04 Thread Wesalius
Wesalius created this task.Wesalius added projects: Pywikibot-archivebot.py, Easy.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONinput value to quarter variable that takes no. of months of last edit of the to-be-archived-thread is divided by 3 instead of 4TASK DETAILhttps

[Pywikipedia-bugs] [Maniphest] [Retitled] T196851: Evaluate BaseBot class usage across scripts

2018-07-01 Thread Wesalius
Wesalius renamed this task from "8abaaa" to "Evaluate BaseBot class usage across scripts".Wesalius lowered the priority of this task from "High" to "Normal".Wesalius added a subscriber: Aklapper.Wesalius removed projects: TCB-Team, Mail, New-Ed

[Pywikipedia-bugs] [Maniphest] [Retitled] T197841: Allow to append to the output page on category.py listify

2018-07-01 Thread Wesalius
Wesalius renamed this task from "qj" to "Allow to append to the output page on category.py listify".Wesalius lowered the priority of this task from "High" to "Normal".Wesalius added a subscriber: Aklapper.Wesalius removed projects: TCB-Team, New-Ed

[Pywikipedia-bugs] [Maniphest] [Created] T197998: Normalize script names

2018-06-23 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONSome scripts use underline in their names others dont, it would be good to have the names standardized one way or another so the names are in expected format

[Pywikipedia-bugs] [Maniphest] [Unassigned] T196851: Evaluate BaseBot class usage across scripts

2018-06-23 Thread Wesalius
Wesalius removed Wesalius as the assignee of this task. TASK DETAILhttps://phabricator.wikimedia.org/T196851EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Xqt, Framawiki, Aklapper, Wesalius, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont

[Pywikipedia-bugs] [Maniphest] [Triaged] T197841: [REQUEST] Category.py listify -append

2018-06-23 Thread Wesalius
Wesalius triaged this task as "Low" priority. TASK DETAILhttps://phabricator.wikimedia.org/T197841EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Aklapper, Wesalius, pywikibot-bugs-list, Asad_Ali_Palijo, Lahi, Soteriaspace, R

[Pywikipedia-bugs] [Maniphest] [Commented On] T196851: Evaluate BaseBot class usage across scripts

2018-06-23 Thread Wesalius
Wesalius added a comment. I am removing myself since it looks beyond my python knowledge. When creating the task I naively hoped to just add a simple counter to the script that missed the "x pages written output".TASK DETAILhttps://phabricator.wikimedia.org/T196851EMAIL PREFER

[Pywikipedia-bugs] [Maniphest] [Closed] T116585: 'NoneType' object has no attribute '__getitem__'

2018-06-23 Thread Wesalius
Wesalius closed this task as "Resolved".Wesalius added a comment. Probably is, I did not run into the error again since posting.TASK DETAILhttps://phabricator.wikimedia.org/T116585EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XZise, WesaliusC

[Pywikipedia-bugs] [Maniphest] [Created] T197841: [REQUEST] Category.py listify -append

2018-06-20 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot-category.py.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONRight now when using listify there is only an option to -overwrite the output page. It would be great if the script could append the the output

[Pywikipedia-bugs] [Maniphest] [Commented On] T196851: Evaluate BaseBot class usage across scripts

2018-07-03 Thread Wesalius
Wesalius added a comment. when listifying, the script outputs affected pages fine, when moving categories, there is no outputTASK DETAILhttps://phabricator.wikimedia.org/T196851EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: gerritbot, Aklapper

[Pywikipedia-bugs] [Maniphest] [Created] T198780: More helpful error message on already existent page when listifying

2018-07-03 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot-category.py.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONWhen user tries to output listify to a page that already has content, pwb fails with Page %s already exists, aborting. Even though solution can

[Pywikipedia-bugs] [Maniphest] [Retitled] T198812: Hint the user to use the -force option when output already has content

2018-07-04 Thread Wesalius
Wesalius renamed this task from "Hint the user to use the -overwrite option when output already has content" to "Hint the user to use the -force option when output already has content". TASK DETAILhttps://phabricator.wikimedia.org/T198812EMAIL PREFERENCEShttps://phabricator.wi

[Pywikipedia-bugs] [Maniphest] [Commented On] T197841: Allow to append to the output page on category.py listify

2018-07-04 Thread Wesalius
Wesalius added a comment. In T197841#4398572, @Xqt wrote: I see. In that case a section header should be implemented too. I agree. pagefromfile.py is already capable of appending to top or bottom, might be reusedTASK DETAILhttps://phabricator.wikimedia.org/T197841EMAIL PREFERENCEShttps

[Pywikipedia-bugs] [Maniphest] [Commented On] T197841: Allow to append to the output page on category.py listify

2018-07-04 Thread Wesalius
Wesalius added a comment. In T197841#4398566, @Xqt wrote: What would be the reason to keep the outdated list? Isn’t it better to look at version history’s difference? Sometime I need a list of content of multiple categories, listifying them to one output with -append option would make

[Pywikipedia-bugs] [Maniphest] [Triaged] T198812: Hint the user to use the -overwrite option when output already has content

2018-07-04 Thread Wesalius
Wesalius triaged this task as "Normal" priority.Wesalius updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...'Use -overwriteforce option to overwrite the output page.')...TASK DETAILhttps://phabricator.wikimedia.org/T198812EMAIL PREFER

[Pywikipedia-bugs] [Maniphest] [Created] T198812: Hint the user to use the -overwrite option when output already has content

2018-07-04 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONWhen user tries to output djvutext.py to a page that already has content, pwb states pywikibot.output('Page %s already exists, not adding!' % page) Even

[Pywikipedia-bugs] [Maniphest] [Commented On] T196851: Evaluate BaseBot class usage across scripts

2018-07-04 Thread Wesalius
Wesalius added a comment. In T196851#4397442, @Xqt wrote: In T196851#4396737, @Wesalius wrote: when listifying, the script outputs affected pages fine, when moving categories, there is no output What output do you expect? Could you give an example. Number of pages moved (analogy to number

[Pywikipedia-bugs] [Maniphest] [Claimed] T203395: Remove unused code reported by Vulture

2018-09-11 Thread Wesalius
Wesalius claimed this task. TASK DETAILhttps://phabricator.wikimedia.org/T203395EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Framawiki, Aklapper, pywikibot-bugs-list, Dvorapa, Kieubinhtb, Asad_Ali_Palijo, Lahi, Soteriaspace, RazeSoldier

[Pywikipedia-bugs] [Maniphest] [Unassigned] T203395: Remove unused code reported by Vulture

2018-09-26 Thread Wesalius
Wesalius removed Wesalius as the assignee of this task.Wesalius added a comment. I would need a mentor myself :-) Ok, leaving it then...TASK DETAILhttps://phabricator.wikimedia.org/T203395EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: WesaliusCc: Wesalius

[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T203395: Remove unused code reported by Vulture

2018-09-26 Thread Wesalius
Wesalius added a subscriber: Xqt.Wesalius added a comment. @Xqt I already contributed to pwb, should I leave this to newcomers for their first commit? (reacting to goodfirstbug tag)TASK DETAILhttps://phabricator.wikimedia.org/T203395EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel

[Pywikipedia-bugs] [Maniphest] [Created] T212723: Exception - No username

2018-12-31 Thread Wesalius
Wesalius created this task.Wesalius added a project: Pywikibot.Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONAny script being run through pwb.py gives File "pwb.py", line 257, in if not main(): File "pwb.py", line 250, in main

[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: Exception - No username

2018-12-31 Thread Wesalius
Wesalius added a comment. In T212723#4847052, @Xqt wrote: ERROR: Username for test:test is undefined. usernames['wikipedia']['cs'] = u'Wesalius' @Wesalius: Your bot is running on site test:test but you defined a user for wikipedia:cs only. How do I tell pwb to use different site then? Maybe

[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: Exception - No username

2018-12-31 Thread Wesalius
Wesalius added a comment. # -*- coding: utf-8 -*- from __future__ import absolute_import, division, unicode_literals # This is an automatically generated file. You can find more configuration # parameters in 'config.py' file. # The family of sites to work on by default. # # ‘site.py’ imports

[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: Exception - No username

2019-01-04 Thread Wesalius
Wesalius added a comment. Resolved with setting correct permissions to user-config.py. The file has to be only readable. The generate-user-files.py produces a 777 user-config.py file. python pwb.py generate-user-files stat --format '%a' user-config.py 777 After changing the permissions

[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: user-config.py with mode 777 is not readable

2019-01-04 Thread Wesalius
Wesalius added a comment. In T212723#4855984, @Dvorapa wrote: @Wesalius Then there are two possibilities: a) you have bot.py, generate_user_files.py, pwb.py or config2.py in 777 and the user-config.py is created by those files with inherited permissions: you should reset permissions