Browse Source

fix user objects

Natenom/support-murmur-13-1446181288462
Michael Ziegler 13 years ago
parent
commit
c17d9b3888
  1. 5
      pyweb/flaskcvp.py

5
pyweb/flaskcvp.py

@ -76,7 +76,10 @@ app.debug = options.debug
def getUser(user): def getUser(user):
return dict(user)
fields = ["channel", "deaf", "mute", "name", "selfDeaf", "selfMute",
"session", "suppress", "userid", "idlesecs", "recording", "comment",
"prioritySpeaker"]
return dict(zip(fields, [getattr(user, field) for field in fields]))
def getChannel(channel): def getChannel(channel):
fields = ["id", "name", "parent", "links", "description", "temporary", "position"] fields = ["id", "name", "parent", "links", "description", "temporary", "position"]

Loading…
Cancel
Save