/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-monitor

  • Committer: teddy at bsnet
  • Date: 2010-09-13 06:19:45 UTC
  • Revision ID: teddy@fukt.bsnet.se-20100913061945-y6qw52q01ptn7q71
* mandos-keygen: Don't use "echo -e".

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
                    self.properties[u"LastEnabled"]))
257
257
            timer = timeout - (datetime.datetime.utcnow() - last_ok)
258
258
            message = (u'A checker has failed! Time until client'
259
 
                       u' gets disabled: %s'
 
259
                       u' gets diabled: %s'
260
260
                           % unicode(timer).rsplit(".", 1)[0])
261
261
        else:
262
262
            message = u"enabled"
325
325
#             self.proxy.unpause()
326
326
#         elif key == u"RET":
327
327
#             self.open()
 
328
#        elif key == u"+":
 
329
#            self.proxy.Approve(True)
 
330
#        elif key == u"-":
 
331
#            self.proxy.Approve(False)
328
332
        else:
329
333
            return key
330
334
    
500
504
        """Toggle visibility of the log buffer."""
501
505
        self.log_visible = not self.log_visible
502
506
        self.rebuild()
503
 
        #self.log_message(u"Log visibility changed to: "
504
 
        #                 + unicode(self.log_visible))
 
507
        self.log_message(u"Log visibility changed to: "
 
508
                         + unicode(self.log_visible))
505
509
    
506
510
    def change_log_display(self):
507
511
        """Change type of log display.
512
516
            self.log_wrap = u"clip"
513
517
        for textwidget in self.log:
514
518
            textwidget.set_wrap_mode(self.log_wrap)
515
 
        #self.log_message(u"Wrap mode: " + self.log_wrap)
 
519
        self.log_message(u"Wrap mode: " + self.log_wrap)
516
520
    
517
521
    def find_and_remove_client(self, path, name):
518
522
        """Find an client from its object path and remove it.