/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: 2022-04-24 16:17:18 UTC
  • mto: This revision was merged to the branch mainline in revision 406.
  • Revision ID: teddy@recompile.se-20220424161718-co15ev303rqgkv4p
Update Debian Policy version to 4.6.0; no other changes necessary.

* debian/control (Standards-Version): Change to "4.6.0".

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
 
 
27
26
from __future__ import (division, absolute_import, print_function,
28
27
                        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
35
36
import os
36
37
import warnings
37
38
import datetime
38
39
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
50
51
    str = unicode
 
52
    input = raw_input
 
53
 
 
54
# Show warnings by default
 
55
if not sys.warnoptions:
 
56
    warnings.simplefilter("default")
51
57
 
52
58
log = logging.getLogger(os.path.basename(sys.argv[0]))
53
59
logging.basicConfig(level="NOTSET", # Show all messages
63
69
domain = "se.recompile"
64
70
server_interface = domain + ".Mandos"
65
71
client_interface = domain + ".Mandos.Client"
66
 
version = "1.8.9"
 
72
version = "1.8.14"
67
73
 
68
74
try:
69
75
    dbus.OBJECT_MANAGER_IFACE
88
94
                             int(fraction*1000000))  # Microseconds
89
95
 
90
96
 
91
 
class MandosClientPropertyCache(object):
 
97
class MandosClientPropertyCache:
92
98
    """This wraps a Mandos Client D-Bus proxy object, caches the
93
99
    properties and calls a hook function when any of them are
94
100
    changed.
406
412
        return ret
407
413
 
408
414
 
409
 
class UserInterface(object):
 
415
class UserInterface:
410
416
    """This is the entire user interface - the whole screen
411
417
    with boxes, lists of client widgets, etc.
412
418
    """