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

--
To view, visit https://gerrit.wikimedia.org/r/526278
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/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 <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot (75)
Gerrit-CC: JJMC89 <[email protected]>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to