Browse Source

added a few more missing encode() statements... I hope that's all now :/

Natenom/support-murmur-13-1446181288462
Michael Ziegler 16 years ago
parent
commit
496367d053
  1. 10
      pyweb/mumble/MumbleCtlIce.py

10
pyweb/mumble/MumbleCtlIce.py

@ -85,7 +85,7 @@ class MumbleCtlIce_118(MumbleCtlBase):
return ret
def getRegisteredPlayers(self, srvid, filter = ''):
users = self._getIceServerObject(srvid).getRegisteredPlayers( filter )
users = self._getIceServerObject(srvid).getRegisteredPlayers( filter.encode( "UTF-8" ) )
ret = []
for user in users:
@ -156,12 +156,10 @@ class MumbleCtlIce_118(MumbleCtlBase):
self._getIceServerObject(srvid).delete()
def setSuperUserPassword(self, srvid, value):
self.meta.setSuperUserPassword(srvid, value)
self.meta.setSuperUserPassword( srvid, value.encode( "UTF-8" ) )
def setConf(self, srvid, key, value):
value = value.encode("utf-8")
#print "%s server %s=%s (%s/%s)" % (srvid, key, value, type(key), type(value))
self._getIceServerObject(srvid).setConf(key, value)
self._getIceServerObject(srvid).setConf( key, value.encode( "UTF-8" ) )
def registerPlayer(self, srvid, name):
return self._getIceServerObject(srvid).registerPlayer( name.encode( "UTF-8" ) )
@ -261,7 +259,7 @@ class MumbleCtlIce_118(MumbleCtlBase):
class MumbleCtlIce_120(MumbleCtlIce_118):
def getRegisteredPlayers(self, srvid, filter = ''):
users = self._getIceServerObject(srvid).getRegisteredUsers(filter)
users = self._getIceServerObject( srvid ).getRegisteredUsers( filter.encode( "UTF-8" ) )
ret = []
for user in users:

Loading…
Cancel
Save