=== modified file 'DBUS-API' --- DBUS-API 2015-05-23 20:18:34 +0000 +++ DBUS-API 2015-08-02 16:45:29 +0000 @@ -55,20 +55,6 @@ Assert that this client has been checked and found to be alive. This will restart the timeout before disabling this client. See also the "LastCheckedOK" property. - -*** Disable() → nothing - Disable this client. See also the "Enabled" property. - -*** Enable() → nothing - Enable this client. See also the "Enabled" property. - -*** StartChecker() → nothing - Start a new checker for this client, if none is currently - running. See also the "CheckerRunning" property. - -*** StopChecker() → nothing - Abort a running checker process for this client, if any. See also - the "CheckerRunning" property. ** Properties @@ -104,13 +90,12 @@ b) An approval is currently pending. - c) Setting this property is equivalent to calling StartChecker() or - StopChecker(). + c) Changing this property can either start a new checker or abort a + running one. d) The creation time of this client object, as an RFC 3339 string. - e) Setting this property is equivalent to calling Enable() or - Disable(). + e) Changing this property enables or disables a client. f) The date and time this client will be disabled, as an RFC 3339 string, or an empty string if this is not scheduled. === modified file 'mandos' --- mandos 2015-08-02 09:36:40 +0000 +++ mandos 2015-08-02 16:45:29 +0000 @@ -1465,24 +1465,28 @@ self.checked_ok() # Enable - method + @dbus_annotations({"org.freedesktop.DBus.Deprecated": "true"}) @dbus.service.method(_interface) def Enable(self): "D-Bus method" self.enable() # StartChecker - method + @dbus_annotations({"org.freedesktop.DBus.Deprecated": "true"}) @dbus.service.method(_interface) def StartChecker(self): "D-Bus method" self.start_checker() # Disable - method + @dbus_annotations({"org.freedesktop.DBus.Deprecated": "true"}) @dbus.service.method(_interface) def Disable(self): "D-Bus method" self.disable() # StopChecker - method + @dbus_annotations({"org.freedesktop.DBus.Deprecated": "true"}) @dbus.service.method(_interface) def StopChecker(self): self.stop_checker() === modified file 'mandos-monitor' --- mandos-monitor 2015-05-23 20:18:34 +0000 +++ mandos-monitor 2015-08-02 16:45:29 +0000 @@ -333,11 +333,13 @@ """Handle keys. This overrides the method from urwid.FlowWidget""" if key == "+": - self.proxy.Enable(dbus_interface = client_interface, - ignore_reply=True) + self.proxy.Set(client_interface, "Enabled", + dbus.Boolean(True), ignore_reply = True, + dbus_interface = dbus.PROPERTIES_IFACE) elif key == "-": - self.proxy.Disable(dbus_interface = client_interface, - ignore_reply=True) + self.proxy.Set(client_interface, "Enabled", False, + ignore_reply = True, + dbus_interface = dbus.PROPERTIES_IFACE) elif key == "a": self.proxy.Approve(dbus.Boolean(True, variant_level=1), dbus_interface = client_interface, @@ -351,11 +353,13 @@ .object_path, ignore_reply=True) elif key == "s": - self.proxy.StartChecker(dbus_interface = client_interface, - ignore_reply=True) + self.proxy.Set(client_interface, "CheckerRunning", + dbus.Boolean(True), ignore_reply = True, + dbus_interface = dbus.PROPERTIES_IFACE) elif key == "S": - self.proxy.StopChecker(dbus_interface = client_interface, - ignore_reply=True) + self.proxy.Set(client_interface, "CheckerRunning", + dbus.Boolean(False), ignore_reply = True, + dbus_interface = dbus.PROPERTIES_IFACE) elif key == "C": self.proxy.CheckedOK(dbus_interface = client_interface, ignore_reply=True)