Browse Source

fixed setting SuperUser password - called the wrong objects :D fixes #11

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

3
pyweb/mumble/MumbleCtlIce.py

@ -156,7 +156,7 @@ class MumbleCtlIce_118(MumbleCtlBase):
self._getIceServerObject(srvid).delete() self._getIceServerObject(srvid).delete()
def setSuperUserPassword(self, srvid, value): def setSuperUserPassword(self, srvid, value):
self.meta.setSuperuserPassword( srvid, value.encode( "UTF-8" ) )
self._getIceServerObject(srvid).setSuperuserPassword( value.encode( "UTF-8" ) )
def setConf(self, srvid, key, value): def setConf(self, srvid, key, value):
self._getIceServerObject(srvid).setConf( key, value.encode( "UTF-8" ) ) self._getIceServerObject(srvid).setConf( key, value.encode( "UTF-8" ) )
@ -172,7 +172,6 @@ class MumbleCtlIce_118(MumbleCtlBase):
user.name = name.encode( "UTF-8" ) user.name = name.encode( "UTF-8" )
user.email = email.encode( "UTF-8" ) user.email = email.encode( "UTF-8" )
user.pw = password.encode( "UTF-8" ) user.pw = password.encode( "UTF-8" )
#print user
# update*r*egistration r is lowercase... # update*r*egistration r is lowercase...
return self._getIceServerObject(srvid).updateregistration(user) return self._getIceServerObject(srvid).updateregistration(user)

Loading…
Cancel
Save