Mpaa has uploaded a new change for review. https://gerrit.wikimedia.org/r/108216
Change subject: Add site.unblockuser() ...................................................................... Add site.unblockuser() Change-Id: Ib6dc1b87b126cff89a0beeb0bcd1713fb5bd3304 --- M pywikibot/site.py 1 file changed, 10 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/16/108216/1 diff --git a/pywikibot/site.py b/pywikibot/site.py index a232365..5400729 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -3142,6 +3142,16 @@ data = req.submit() return data + @must_be(group='sysop') + def unblockuser(self, user, reason): + + token = self.token(user, 'block') + req = api.Request(site=self, action='unblock', user=user.username, + reason=reason, token=token) + + data = req.submit() + return data + def watchpage(self, page, unwatch=False): """Add or remove page from watchlist. -- To view, visit https://gerrit.wikimedia.org/r/108216 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib6dc1b87b126cff89a0beeb0bcd1713fb5bd3304 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Mpaa <mpaa.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits