jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
Add allowusertalk to the userblock options in pywikibot

Bug: T229288
Change-Id: I8248d57b7bb126cf94fb48d3c31eebea878a3cf7
---
M pywikibot/site.py
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/pywikibot/site.py b/pywikibot/site.py
index 9856dd8..d66b5d2 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -5911,7 +5911,8 @@

@must_be(group='sysop')
def blockuser(self, user, expiry, reason, anononly=True, nocreate=True,
- autoblock=True, noemail=False, reblock=False):
+ autoblock=True, noemail=False, reblock=False,
+ allowusertalk=False):
"""
Block a user for certain amount of time and for a certain reason.

@@ -5947,6 +5948,9 @@
@param reblock: If the user is already blocked, overwrite the existing
block.
@type reblock: boolean
+ @param allowusertalk: Whether the user can edit their talk page while
+ blocked.
+ @type allowusertalk: boolean
@return: The data retrieved from the API request.
@rtype: dict
"""
@@ -5957,7 +5961,8 @@
expiry=expiry, reason=reason, token=token,
anononly=anononly, nocreate=nocreate,
autoblock=autoblock, noemail=noemail,
- reblock=reblock)
+ reblock=reblock,
+ allowusertalk=allowusertalk)

data = req.submit()
return data

To view, visit change 526278. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I8248d57b7bb126cf94fb48d3c31eebea878a3cf7
Gerrit-Change-Number: 526278
Gerrit-PatchSet: 1
Gerrit-Owner: Huji <huji.huji@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Ladsgroup <Ladsgroup@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)
Gerrit-CC: JJMC89 <JJMC89.Wikimedia@gmail.com>