From: Stéphane Jacob Date: Sat, 22 Oct 2011 22:21:50 +0000 (+0200) Subject: Retrives dict values in order to populate ML, as php might give a dict instead of... X-Git-Tag: xorg/1.1.4~76 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d55f85b2752dea9110215b607c8e509a13f986bf;p=platal.git Retrives dict values in order to populate ML, as php might give a dict instead of a list. Signed-off-by: Stéphane Jacob --- 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()