https://bugzilla.wikimedia.org/show_bug.cgi?id=55032
Web browser: --- Bug ID: 55032 Summary: -enable arg to all scripts Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/312/ Reported by: avicennasis Created on: 2012-06-18 05:17:33 Subject: -enable arg to all scripts Original description: It would be handy to have an optional -enable "Checkpage" option built into scripts by default - so that a bot can deactivated by non-admins, if so needed.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55032
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- What is the behaviour you would want/expect when 'Checkpage' is enabled?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55032
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- A simple boolean value - if the arg is used, read checkpage - if 'true', continue script - if false, stop and exit script.
I know some of the scripts have a "enablePage" - but a lot of them don't.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55032
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- That doesn't tell me anything about what it should do. What is 'checkpage'? What should the bot do with it? When? What should it do in which case?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55032
--- Comment #4 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Exactly what the '-enable:' parameter does in lonelypages.py - http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia/lonelypages.p...
https://bugzilla.wikimedia.org/show_bug.cgi?id=55032
--- Comment #5 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- This behavior is not the same as blocking a bot by admins; it only prohibits the next start of the bot. So I am not sure if this is what you want to.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55032
--- Comment #6 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- True, it is different then an admin stopping the bot via blocking, which of course would be instant. I was thinking more of implementations on cron - allowing any user to 'disable' the next run of a cronjob'd script until the BotOp is online/able to address a problem that may have arisen.
(Alternatively, one could rewrite the -enable option to be checked every 10-25 pages, and so stop a bot from running even in 'mid-script'.)
https://bugzilla.wikimedia.org/show_bug.cgi?id=55032
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/feature-reque | |sts/312
https://bugzilla.wikimedia.org/show_bug.cgi?id=55032
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@openmailbox.or | |g Summary|-enable arg to all scripts |create "checkpage" option | |and global "-enable" | |argument
https://bugzilla.wikimedia.org/show_bug.cgi?id=55032
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|Pywikipedia-bugs@lists.wiki |ricordisamoa@openmailbox.or |media.org |g
pywikipedia-bugs@lists.wikimedia.org