Patches item #1898128, was opened at 2008-02-20 14:57
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=189812…
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: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Roberto Zanon (qualc1)
Assigned to: Nobody/Anonymous (nobody)
Summary: unprotect page doesn't work
Initial Comment:
Method
protect(self, edit='sysop', move='sysop', create='sysop',
unprotect=False, reason=None, prompt=True, throttle=True)
in Page class (in wikipedia.py) doesn't work when is used to unprotect a page.
For example:
page.protect(unprotect=True) doesn't unprotect the page (actually it protect).
When unprotect is True the function use "unprotect" action instead of
"protect" but unprotect is only an alias for protect (see
http://www.mediawiki.org/wiki/Manual:Page_action#Actions)
I've attached a patch.
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date:
2008-02-21 09:03
Message:
Logged In: YES
user_id=855050
Originator: NO
Applied in r5065.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=189812…