/mandos/release

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

« back to all changes in this revision

Viewing changes to mandos-monitor

  • Committer: Björn Påhlsson
  • Date: 2012-07-03 20:55:09 UTC
  • mto: (237.7.272 trunk)
  • mto: This revision was merged to the branch mainline in revision 303.
  • Revision ID: belorn@recompile.se-20120703205509-fkeb6uqy4i6gt4b6
added note messages when mandos-monitor starts without running server,
or a server with no clients.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
domain = 'se.recompile'
56
56
server_interface = domain + '.Mandos'
57
57
client_interface = domain + '.Mandos.Client'
58
 
version = "1.5.4"
 
58
version = "1.6.0"
59
59
 
60
60
# Always run in monochrome mode
61
61
urwid.curses_display.curses.has_colors = lambda : False
489
489
        self.topwidget = urwid.Pile(self.uilist)
490
490
    
491
491
    def log_message(self, message):
 
492
        """Log message formatted with timestamp"""
492
493
        timestamp = datetime.datetime.now().isoformat()
493
494
        self.log_message_raw(timestamp + ": " + message)
494
495
    
584
585
        try:
585
586
            mandos_clients = (self.mandos_serv
586
587
                              .GetAllClientsWithProperties())
 
588
            if not mandos_clients:
 
589
                self.log_message_raw(("bold", "Note: Server has no clients."))
587
590
        except dbus.exceptions.DBusException:
 
591
            self.log_message_raw(("bold", "Note: No Mandos servers running."))
588
592
            mandos_clients = dbus.Dictionary()
589
593
        
590
594
        (self.mandos_serv