Revision: 4977
Author: filnik
Date: 2008-02-04 21:01:01 +0000 (Mon, 04 Feb 2008)
Log Message:
-----------
Uhm, I should have done something wrong the last time. Fix.
Modified Paths:
--------------
trunk/pywikipedia/blockpageschecker.py
Modified: trunk/pywikipedia/blockpageschecker.py
===================================================================
--- trunk/pywikipedia/blockpageschecker.py 2008-02-04 18:50:19 UTC (rev 4976)
+++ trunk/pywikipedia/blockpageschecker.py 2008-02-04 21:01:01 UTC (rev 4977)
@@ -233,27 +233,27 @@
oldtext = text
if editRestriction == 'sysop':
- if TemplateInThePage[0] == 'sysop-total' or TTP == None:
+ if TemplateInThePage[0] == 'sysop-total' and TTP != None:
wikipedia.output(u'The page is protected to the sysop,
skipping...')
continue
else:
wikipedia.output(u'The page is protected to the sysop, but the
template seems not correct. Fixing...')
text = re.sub(TemplateInThePage[1], TNR[1], text)
elif moveBlockCheck and moveRestriction == 'sysop':
- if TemplateInThePage[0] == 'sysop-move' or TTMP == None:
+ if TemplateInThePage[0] == 'sysop-move' and TTMP != None:
wikipedia.output(u'The page is protected from moving to the sysop,
skipping...')
continue
else:
wikipedia.output(u'The page is protected from moving to the sysop,
but the template seems not correct. Fixing...')
text = re.sub(TemplateInThePage[1], TNR[3], text)
- elif editRestriction == 'autoconfirmed' or TSP == None:
+ elif editRestriction == 'autoconfirmed' and TSP != None:
if TemplateInThePage[0] == 'autoconfirmed-total':
wikipedia.output(u'The page is editable only for the autoconfirmed
users, skipping...')
continue
else:
wikipedia.output(u'The page is editable only for the autoconfirmed
users, but the template seems not correct. Fixing...')
text = re.sub(TemplateInThePage[1], TNR[0], text)
- elif moveBlockCheck and moveRestriction == 'autoconfirmed' or TSMP ==
None:
+ elif moveBlockCheck == True and moveRestriction == 'autoconfirmed' and
TSMP != None:
if TemplateInThePage[0] == 'autoconfirmed-move':
wikipedia.output(u'The page is movable only for the autoconfirmed
users, skipping...')
continue
Show replies by date