Patches item #1898128, was opened at 2008-02-20 20:57 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=1898128...
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: 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.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1898128...