/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: 2009-03-31 01:32:12 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090331013212-yes2wy6njzlyniaa
* mandos (Client): Move all D-Bus code to new "ClientDBus" class.
  (Client.start_checker): Bug fix: update "current_checker_command" in
                          all cases.
  (ClientDBus): New class.
  (main): Use Client or ClientDBus depending on "use_dbus".
  (main/MandosDBusService.RemoveClient): Bug fix: make sure the client
                                         is removed from the D-Bus.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
server_path = '/'
32
32
server_interface = domain + '.Mandos'
33
33
client_interface = domain + '.Mandos.Client'
34
 
version = "1.0.11"
 
34
version = "1.0.8"
35
35
bus = dbus.SystemBus()
36
36
mandos_dbus_objc = bus.get_object(busname, server_path)
37
37
mandos_serv = dbus.Interface(mandos_dbus_objc,
106
106
                                      for client in
107
107
                                      clients))
108
108
                              for key in keywords)
109
 
    print format_string % tuple(tablewords[key] for key in keywords)
 
109
    print format_string % tuple(tablewords[key] for key in keywords) 
110
110
    for client in clients:
111
111
        print format_string % tuple(valuetostring(client[key], key)
112
112
                                    for key in keywords)