/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: Teddy Hogeborn
  • Date: 2019-11-03 19:17:57 UTC
  • mto: This revision was merged to the branch mainline in revision 396.
  • Revision ID: teddy@recompile.se-20191103191757-1hdpp0u5fxa8iumo
INSTALL: Add "-" argument to "su" invocations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#
24
24
# Contact the authors at <mandos@recompile.se>.
25
25
#
 
26
 
26
27
from __future__ import (division, absolute_import, print_function,
27
28
                        unicode_literals)
28
 
 
29
29
try:
30
30
    from future_builtins import *
31
31
except ImportError:
32
32
    pass
33
33
 
34
34
import sys
35
 
import logging
36
35
import os
37
36
import warnings
38
37
import datetime
39
38
import locale
 
39
import logging
40
40
 
41
41
import urwid.curses_display
42
42
import urwid
47
47
import dbus
48
48
 
49
49
if sys.version_info.major == 2:
50
 
    __metaclass__ = type
51
50
    str = unicode
52
 
    input = raw_input
53
 
 
54
 
# Show warnings by default
55
 
if not sys.warnoptions:
56
 
    warnings.simplefilter("default")
57
51
 
58
52
log = logging.getLogger(os.path.basename(sys.argv[0]))
59
53
logging.basicConfig(level="NOTSET", # Show all messages
69
63
domain = "se.recompile"
70
64
server_interface = domain + ".Mandos"
71
65
client_interface = domain + ".Mandos.Client"
72
 
version = "1.8.15"
 
66
version = "1.8.9"
73
67
 
74
68
try:
75
69
    dbus.OBJECT_MANAGER_IFACE
94
88
                             int(fraction*1000000))  # Microseconds
95
89
 
96
90
 
97
 
class MandosClientPropertyCache:
 
91
class MandosClientPropertyCache(object):
98
92
    """This wraps a Mandos Client D-Bus proxy object, caches the
99
93
    properties and calls a hook function when any of them are
100
94
    changed.
412
406
        return ret
413
407
 
414
408
 
415
 
class UserInterface:
 
409
class UserInterface(object):
416
410
    """This is the entire user interface - the whole screen
417
411
    with boxes, lists of client widgets, etc.
418
412
    """