Page MenuHomePhabricator

Blockpageschecker's default value of -move option
Closed, ResolvedPublic

Description

Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/130/
Reported by: nightshadow28
Created on: 2008-02-12 13:08:22
Subject: Blockpageschecker's default value of -move option
Original description:
A project using "moving protection", always use -move option. That is, if bot operator forgets to use the option, it will be miss operation with false editing. Therefore, would you change default value of the option by site?
For example, by code as below:

\---- \(1\)
\# Check list to block the users that haven't set their preferences
project\_inserted = \['en', 'fr', 'it', 'ja', 'pt', 'zh'\]
\# \(patch\) Check list to change default value of -move ----------------- Start
project\_moving\_prot = \[u'wikipedia:ja'\]
\# \(patch\) ------------------------------------------------------------- End

\---- \(2\)
\# Load the right site
site = wikipedia.getSite\(\)
\# \(patch\) default option value of -move ---------------------------------- Start
if unicode\(site\) in project\_moving\_prot:
wikipedia.output\('The site needs to check for protection of moving, so bot will check it anyway.'\)
moveBlockCheck = True
\# \(patch\) --------------------------------------------------------- End

Sincerely yours, Nightshadow28.


Version: unspecified
Severity: enhancement
See Also:
https://sourceforge.net/p/pywikipediabot/feature-requests/130

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:20 AM
bzimport set Reference to bz55106.
bzimport added a subscriber: Unknown Object (????).
Aklapper triaged this task as Lowest priority.Nov 2 2015, 2:32 PM

Change 724100 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [IMPR] Use ConfigParserBot with blockpageschecker.py

https://gerrit.wikimedia.org/r/724100

Instead of using a site dependent setting let the user the choice to set the defaults inside scripts.ini e.g

[blockpageschecker]
show = yes

Change 724100 merged by jenkins-bot:

[pywikibot/core@master] [IMPR] Use ConfigParserBot with blockpageschecker.py

https://gerrit.wikimedia.org/r/724100