Retrives dict values in order to populate ML, as php might give a dict instead of...
authorStéphane Jacob <sj@m4x.org>
Sat, 22 Oct 2011 22:21:50 +0000 (00:21 +0200)
committerStéphane Jacob <sj@m4x.org>
Sat, 22 Oct 2011 22:21:50 +0000 (00:21 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
bin/lists.rpc.py

index 61aac8f..780b293 100755 (executable)
@@ -467,6 +467,8 @@ def mass_subscribe(userdesc, perms, mlist, users):
             @edit
             @admin
     """
+    if isinstance(users, dict):
+        users = users.values()
     if not isinstance(users, list):
         raise Exception("userlist must be a list")
     members = mlist.getRegularMemberKeys()