Browse Source

fixed isBooted/start/stop methods that withgod simply forgot to implement >_<

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
239700e62a
  1. 9
      pyweb/mumble/MumbleCtlDbus.py
  2. 9
      pyweb/mumble/MumbleCtlIce.py

9
pyweb/mumble/MumbleCtlDbus.py

@ -53,6 +53,15 @@ class MumbleCtlDbus(MumbleCtlBase):
def getDefaultConf(self): def getDefaultConf(self):
return MumbleCtlDbus.converDbusTypeToNative(self.meta.getDefaultConf()) return MumbleCtlDbus.converDbusTypeToNative(self.meta.getDefaultConf())
def start( self, srvid ):
self.meta.start( srvid );
def stop( self, srvid ):
self.meta.stop( srvid );
def isBooted( self, srvid ):
return bool( self.meta.isBooted( srvid ) );
def deleteServer( self, srvid ): def deleteServer( self, srvid ):
srvid = dbus.Int32( srvid ) srvid = dbus.Int32( srvid )
if self.meta.isBooted( srvid ): if self.meta.isBooted( srvid ):

9
pyweb/mumble/MumbleCtlIce.py

@ -141,6 +141,15 @@ class MumbleCtlIce_118(MumbleCtlBase):
def newServer(self): def newServer(self):
return self.meta.newServer().id() return self.meta.newServer().id()
def isBooted( self, srvid ):
return bool( self._getIceServerObject(srvid).isRunning() );
def start( self, srvid ):
self._getIceServerObject(srvid).start();
def stop( self, srvid ):
self._getIceServerObject(srvid).stop();
def deleteServer( self, srvid ): def deleteServer( self, srvid ):
if self._getIceServerObject(srvid).isRunning(): if self._getIceServerObject(srvid).isRunning():
self._getIceServerObject(srvid).stop() self._getIceServerObject(srvid).stop()

Loading…
Cancel
Save