Bugs item #1861995, was opened at 2008-01-02 06:12
Message generated for change (Comment added) made by filnik
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1861995&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nightshadow28 (nightshadow28)
Assigned to: Nobody/Anonymous (nobody)
Summary: blockpageschecker.py can not interpret moving protection.
Initial Comment:
blockpageschecker.py can not interpret moving protection.
from Japanese wikpedia:
The script can not interpret article under moving protection.
For avoiding move warring, sysop locks moving of an article by general user. However, because the script is evaluating only "sysop" and "autoconfirmed", protection of this kind can not interpret correctly. As a result, the all template of the article under move protection will be removed.
The article which general user can move:
http://ja.wikipedia.org/w/index.php?title=%E5%A4%A7%E5%9D%82%E5%9F%8E&diff=…
The article which general user can not move (but removed):
http://ja.wikipedia.org/w/index.php?title=L%E9%96%A2%E6%95%B0&diff=prev&old…
----------------------------------------------------------------------
Comment By: Filnik (filnik)
Date: 2008-01-02 15:16
Message:
Logged In: YES
user_id=1834469
Originator: NO
Bug Fixed, feature added (-move). Update and enjoy :-) Filnik
----------------------------------------------------------------------
Comment By: Filnik (filnik)
Date: 2008-01-02 14:08
Message:
Logged In: YES
user_id=1834469
Originator: NO
Working on it, I'll improve a -option ;) (on it.wiki pages protected only
for move don't need that template) I wonder only how can I detect if the
pages are blocked for move but I'll find something out :-)
Filnik
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1861995&group_…
Revision: 4790
Author: filnik
Date: 2008-01-02 15:14:56 +0000 (Wed, 02 Jan 2008)
Log Message:
-----------
Adding a feature (control if the page is blocked to move or not when someone use -move argument) BugFIX: 1861995
Modified Paths:
--------------
trunk/pywikipedia/blockpageschecker.py
Modified: trunk/pywikipedia/blockpageschecker.py
===================================================================
--- trunk/pywikipedia/blockpageschecker.py 2008-01-01 17:24:13 UTC (rev 4789)
+++ trunk/pywikipedia/blockpageschecker.py 2008-01-02 15:14:56 UTC (rev 4790)
@@ -13,6 +13,7 @@
it will ask you if it should open the page on your browser.
(attention: pages included may give false positives..)
-page Work only on one page
+-move The bot will check if the page is blocked also for the move option, not only for edit
Note: This script uses also genfactory, you can use those generator as default.
@@ -89,6 +90,17 @@
#######################################################
#------------------ END PREFERENCES ------------------#
################## -- Edit above! -- ##################
+
+def moveBlockChecker(page, site):
+ """ Function to check if a page is protected or not to move """
+ urlText = site.getUrl('/w/api.php?action=query&prop=info&inprop=protection&titles=%s' % page.urlname())
+ res = re.findall(r'<pr type="move" level="(.*?)&', urlText)
+ if res == []:
+ return 'editable'
+ elif res != [] and res[0] == 'autoconfirmed':
+ return 'autoconfirmed'
+ else:
+ return 'sysop'
def main():
# Loading the comments
@@ -97,14 +109,17 @@
wikipedia.output(u"Your project is not supported by this script. You have to edit the script and add it!")
wikipedia.stopme()
# always, define a generator to understand if the user sets one, defining what's genFactory
- always = False; generator = False; debug = False; genFactory = pagegenerators.GeneratorFactory()
+ always = False; generator = False; debug = False
+ moveBlockCheck = False; genFactory = pagegenerators.GeneratorFactory()
# To prevent Infinite loops
errorCount = 0
# Loading the default options.
for arg in wikipedia.handleArgs():
if arg == '-always':
always = True
- if arg == '-debug':
+ elif arg == '-move':
+ moveBlockCheck = True
+ elif arg == '-debug':
debug = True
elif arg.startswith('-page'):
if len(arg) == 5:
@@ -144,6 +159,11 @@
except wikipedia.IsRedirectPage:
wikipedia.output("%s is a redirect! Skipping..." % pagename)
continue
+ if moveBlockCheck == True and editRestriction != 'sysop'and editRestriction != 'autoconfirmed':
+ editRestriction = moveBlockChecker(page, site)
+ if editRestriction != 'editable':
+ wikipedia.output(u'The page is protected to move (to %s), skipping...' % editRestriction)
+ continue
if editRestriction == 'sysop':
wikipedia.output(u'The page is protected to the sysop, skipping...')
continue
Bugs item #1861995, was opened at 2008-01-02 06:12
Message generated for change (Comment added) made by filnik
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1861995&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nightshadow28 (nightshadow28)
Assigned to: Nobody/Anonymous (nobody)
Summary: blockpageschecker.py can not interpret moving protection.
Initial Comment:
blockpageschecker.py can not interpret moving protection.
from Japanese wikpedia:
The script can not interpret article under moving protection.
For avoiding move warring, sysop locks moving of an article by general user. However, because the script is evaluating only "sysop" and "autoconfirmed", protection of this kind can not interpret correctly. As a result, the all template of the article under move protection will be removed.
The article which general user can move:
http://ja.wikipedia.org/w/index.php?title=%E5%A4%A7%E5%9D%82%E5%9F%8E&diff=…
The article which general user can not move (but removed):
http://ja.wikipedia.org/w/index.php?title=L%E9%96%A2%E6%95%B0&diff=prev&old…
----------------------------------------------------------------------
Comment By: Filnik (filnik)
Date: 2008-01-02 14:08
Message:
Logged In: YES
user_id=1834469
Originator: NO
Working on it, I'll improve a -option ;) (on it.wiki pages protected only
for move don't need that template) I wonder only how can I detect if the
pages are blocked for move but I'll find something out :-)
Filnik
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1861995&group_…
Support Requests item #1862171, was opened at 2008-01-02 13:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=1862171&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Purodha B Blissenbach (purodha)
Assigned to: Nobody/Anonymous (nobody)
Summary: How to hide Links from weblinkchcker.py ?
Initial Comment:
We have articles on the Top Level Domains:
.example .invalid .localhost .test
in the Wikipedia of Ripuarian languages.
These domains are never offically created, as of RFC 26ß6, but are, or can be, used locally in a local network. Articles include weblinks to sample subdomains of those, which is fine.
Weblinkchecker keeps complaing about them, which is not what authors intended.
So, we need a way to exclude those domains from weblinkcheckers attention (but not exclude the entire articles, btw.!)
How do we do that?
Reading documentation did not help.
If there is not yet a mechanism for it, please see this as a feature request, and move it accordingly.
Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=1862171&group_…
Bugs item #1861995, was opened at 2008-01-02 06:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1861995&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nightshadow28 (nightshadow28)
Assigned to: Nobody/Anonymous (nobody)
Summary: blockpageschecker.py can not interpret moving protection.
Initial Comment:
blockpageschecker.py can not interpret moving protection.
from Japanese wikpedia:
The script can not interpret article under moving protection.
For avoiding move warring, sysop locks moving of an article by general user. However, because the script is evaluating only "sysop" and "autoconfirmed", protection of this kind can not interpret correctly. As a result, the all template of the article under move protection will be removed.
The article which general user can move:
http://ja.wikipedia.org/w/index.php?title=%E5%A4%A7%E5%9D%82%E5%9F%8E&diff=…
The article which general user can not move (but removed):
http://ja.wikipedia.org/w/index.php?title=L%E9%96%A2%E6%95%B0&diff=prev&old…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1861995&group_…
Bugs item #1861975, was opened at 2008-01-02 05:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1861975&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: category
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nightshadow28 (nightshadow28)
Assigned to: Nobody/Anonymous (nobody)
Summary: sorted category by category.py (jawp)
Initial Comment:
>From Japanese Wikipedia:
In jawp, a category tag ("article nominated for deletion") is included in "substed" AfD template.
If "category.py" runs for removing other category in an article, it does unnecessary sorting.
http://ja.wikipedia.org/w/index.php?title=%E9%87%91%E7%94%B0%E4%B8%80%E5%B0…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1861975&group_…
Anarchopedia is using ISO 639-2 (three letters) codes from its
beginning. Two letters codes are generally Apache config hack for
compatibility with Wikipedia (interwiki links also have compatibility
with Wikipedia and they are usually used, even three letters codes
should be used). Long time ago I asked Andre Engels how to change
that, but I forgot how to do that. So, may someone fix it? Here is the
list of the pairs:
ar:ara
id:ind
bs:bos
zh:chi
da:dan
de:deu
el:ell
es:spa
eo:epo
fr:fra
hr:hrv
it:ita
ja:jpn
lt:lit
nl:dut
no:nor
nn:nno
pl:pol
pt:por
ro:rum
ru:rus
sr:srp
sh:nsh
sv:swe
(nsh is not an ISO 639-2 code)
Bugs item #1861698, was opened at 2008-01-01 23:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1861698&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: Featured.py cannot detect FA mark template with underline
Initial Comment:
from Japanese wikipedia.
http://ja.wikipedia.org/w/index.php?title=%E3%83%8D%E3%82%B3&diff=17082088&…
This article is tagged {{Link_FA}} with the underline, but the script didn't detect it.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1861698&group_…