Patches item #1994381, was opened at 2008-06-15 13:35 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1994381...
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 Resolution: None Priority: 5 Private: No Submitted By: Nightshadow28 (nightshadow28) Assigned to: Nobody/Anonymous (nobody) Summary: update for blockpagechecker.py
Initial Comment: 1) Fixing regex of protection templates for jawp. The bot will remove blankspace and carriage return line feed just behind the templates, and not remove nowiki-ed string.
# Regex to get the semi-protection template templateSemiProtection = { 'ja':[ur'(?<!<nowiki>){{(?:[Tt]emplate:|)半保護(?:[Ss]|)(?:|.+|)}}(?!</nowiki>)\s*(?:\r\n|)*'],
# Regex to get the total-protection template templateTotalProtection = { 'ja':[ur'(?<!<nowiki>){{(?:[Tt]emplate:|)保護(?:性急|)(?:[Ss]|)(?:|.+|)}}(?!</nowiki>)\s*(?:\r\n|)*'],
templateSemiMoveProtection = { 'ja':[ur'(?<!<nowiki>){{(?:[Tt]emplate:|)移動半保護(?:[Ss]|)(?:|.+|)}}(?!</nowiki>)\s*(?:\r\n|)*'],
templateTotalMoveProtection = { 'ja':[ur'(?<!<nowiki>){{(?:[Tt]emplate:|)移動保護(?:[Ss]|)(?:|.+|)}}(?!</nowiki>)\s*(?:\r\n|)*'],
----- 2) In understandBlock method, TTMP and TSMP is exchanged. If the method returns "sysop-move", the variable should be used TTMP (templateTotalMoveProtection). As well as "autoconfirmed-move" is TSMP (templateSemiMoveProtection).
if TSMP != None and TTMP != None and TTP != TTMP and TSP != TSMP: #for catchRegex in TSMP: for catchRegex in TTMP: resultCatch = re.findall(catchRegex, text) if resultCatch: return ('sysop-move', catchRegex) #for catchRegex in TTMP: for catchRegex in TSMP: resultCatch = re.findall(catchRegex, text) if resultCatch: return ('autoconfirmed-move', catchRegex)
Pywikipediabot [http] trunk/pywikipedia (r5567, 6月 15 2008, 11:49:28) Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1994381...