/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-11-09 05:10:35 UTC
  • Revision ID: teddy@fukt.bsnet.se-20091109051035-zcmvuhioo9gjs0cb
* mandos-monitor (MandosClientPropertyCache): Remove conversion of
                                              D-Bus types to native
                                              Python types.
  (MandosClientPropertyCache.type_map): Removed attribute.
  (MandosClientPropertyCache.conversion): Removed method.
  (ConstrainedListBox): New; a ListBox which will keep the focus.
  (UserInterface.__init__): Take new argument "max_log_length".
  (UserInterface.divider, UserInterface.log,
  UserInterface.max_log_length, UserInterface.logbox,
  UserInterface.log_visible, UserInterface.log_wrap): New attributes.
  (UserInterface.rebuild, UserInterface.log_message,
  UserInterface.toggle_log_display, UserInterface.change_log_display):
  New methods.
  (UserInterface.remove_client): Bug fix: Eliminate double client
                                 listing when an empty list gets a
                                 ClientAdded signal.
  (UserInterface.process_input): Add more key translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
                  help="Start checker for client")
129
129
parser.add_option("--stop-checker", action="store_true",
130
130
                  help="Stop checker for client")
131
 
parser.add_option("-V", "--is-enabled", action="store_true",
132
 
                  help="Check if client is enabled")
 
131
parser.add_option("-V", "--is-valid", action="store_true",
 
132
                  help="Check if client is still valid")
133
133
parser.add_option("-r", "--remove", action="store_true",
134
134
                  help="Remove client")
135
135
parser.add_option("-c", "--checker", type="string",
178
178
        client.StartChecker(dbus_interface=client_interface)
179
179
    if options.stop_checker:
180
180
        client.StopChecker(dbus_interface=client_interface)
181
 
    if options.is_enabled:
 
181
    if options.is_valid:
182
182
        sys.exit(0 if client.Get(client_interface,
183
183
                                 u"enabled",
184
184
                                 dbus_interface=dbus.PROPERTIES_IFACE)