jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/526278 )
Change subject: Add allowusertalk to the userblock options in pywikibot ......................................................................
Add allowusertalk to the userblock options in pywikibot
Bug: T229288 Change-Id: I8248d57b7bb126cf94fb48d3c31eebea878a3cf7 --- M pywikibot/site.py 1 file changed, 7 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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
pywikibot-commits@lists.wikimedia.org