Browse Source

when fetching player data, decode strings from UTF8.

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
a7b3eae9c9
  1. 6
      pyweb/mumble/MumbleCtlIce.py

6
pyweb/mumble/MumbleCtlIce.py

@ -396,7 +396,11 @@ class MumbleCtlIce_120(MumbleCtlIce_118):
@protectDjangoErrPage @protectDjangoErrPage
def getPlayers(self, srvid): def getPlayers(self, srvid):
return self._getIceServerObject(srvid).getUsers();
userdata = self._getIceServerObject(srvid).getUsers();
for key in userdata:
if isinstance( userdata[key], str ):
userdata[key] = userdata[key].decode( "UTF-8" )
return userdata
@protectDjangoErrPage @protectDjangoErrPage
def registerPlayer(self, srvid, name, email, password): def registerPlayer(self, srvid, name, email, password):

Loading…
Cancel
Save