diff --git a/pyweb/mumble/MumbleCtlDbus.py b/pyweb/mumble/MumbleCtlDbus.py index f94cb65..9596dc7 100644 --- a/pyweb/mumble/MumbleCtlDbus.py +++ b/pyweb/mumble/MumbleCtlDbus.py @@ -323,6 +323,9 @@ class MumbleCtlDbus_118(MumbleCtlBase): (chanid, name, parent, links) = srv.getChannelState(dbus.UInt32(channelid)) srv.setChannelState((chanid, name, parentid, links)) + def getUptime( self, srvid): + return 0 + @staticmethod def convertDbusTypeToNative(data): #i know dbus.* type is extends python native type. diff --git a/pyweb/mumble/MumbleCtlIce.py b/pyweb/mumble/MumbleCtlIce.py index f74aa98..0096d30 100644 --- a/pyweb/mumble/MumbleCtlIce.py +++ b/pyweb/mumble/MumbleCtlIce.py @@ -627,7 +627,7 @@ class MumbleCtlIce_120(MumbleCtlIce_118): @protectDjangoErrPage def getUptime(self, srvid): - return self._getIceServerObject(srvid).getUptime() + return 0 class MumbleCtlIce_122(MumbleCtlIce_120): @@ -642,6 +642,10 @@ class MumbleCtlIce_122(MumbleCtlIce_120): buf.seek(0) self._getIceServerObject(srvid).setTexture(mumbleid, buf.read()) + @protectDjangoErrPage + def getUptime(self, srvid): + return self._getIceServerObject(srvid).getUptime() + class MumbleCtlIce_123(MumbleCtlIce_120):