/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-ctl

  • Committer: Teddy Hogeborn
  • Date: 2012-05-05 08:53:14 UTC
  • mto: This revision was merged to the branch mainline in revision 570.
  • Revision ID: teddy@recompile.se-20120505085314-57lf21cjfybyljkl
* mandos-ctl (main): Use D-Bus properties instead of methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
            if options.remove:
283
283
                mandos_serv.RemoveClient(client.__dbus_object_path__)
284
284
            if options.enable:
285
 
                client.Enable(dbus_interface=client_interface)
 
285
                client.Set(client_interface, "Enabled",
 
286
                           dbus.Boolean(True),
 
287
                           dbus_interface=dbus.PROPERTIES_IFACE)
286
288
            if options.disable:
287
 
                client.Disable(dbus_interface=client_interface)
 
289
                client.Set(client_interface, "Enabled",
 
290
                           dbus.Boolean(False),
 
291
                           dbus_interface=dbus.PROPERTIES_IFACE)
288
292
            if options.bump_timeout:
289
 
                client.CheckedOK(dbus_interface=client_interface)
 
293
                client.Set(client_interface, "LastCheckedOK", "",
 
294
                           dbus_interface=dbus.PROPERTIES_IFACE)
290
295
            if options.start_checker:
291
 
                client.StartChecker(dbus_interface=client_interface)
 
296
                client.Set(client_interface, "CheckerRunning",
 
297
                           dbus.Boolean(True),
 
298
                           dbus_interface=dbus.PROPERTIES_IFACE)
292
299
            if options.stop_checker:
293
 
                client.StopChecker(dbus_interface=client_interface)
 
300
                client.Set(client_interface, "CheckerRunning",
 
301
                           dbus.Boolean(False),
 
302
                           dbus_interface=dbus.PROPERTIES_IFACE)
294
303
            if options.is_enabled:
295
304
                sys.exit(0 if client.Get(client_interface,
296
305
                                         "Enabled",