From d55f85b2752dea9110215b607c8e509a13f986bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sun, 23 Oct 2011 00:21:50 +0200 Subject: [PATCH] Retrives dict values in order to populate ML, as php might give a dict instead of a list. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- bin/lists.rpc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/lists.rpc.py b/bin/lists.rpc.py index 61aac8f..780b293 100755 --- a/bin/lists.rpc.py +++ b/bin/lists.rpc.py @@ -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() -- 2.1.4