/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-23 22:27:35 UTC
  • mto: This revision was merged to the branch mainline in revision 396.
  • Revision ID: teddy@recompile.se-20191123222735-wp6z91c2kau3o63u
Server: Fix bug when setting Secret property of clients via D-Bus

* mandos (DBusObjectWithProperties.Set): On byte arrays, simply cast
  the value to "bytes".

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
import dbus
48
48
 
49
49
if sys.version_info.major == 2:
50
 
    __metaclass__ = type
51
50
    str = unicode
52
51
 
53
52
log = logging.getLogger(os.path.basename(sys.argv[0]))
64
63
domain = "se.recompile"
65
64
server_interface = domain + ".Mandos"
66
65
client_interface = domain + ".Mandos.Client"
67
 
version = "1.8.12"
 
66
version = "1.8.9"
68
67
 
69
68
try:
70
69
    dbus.OBJECT_MANAGER_IFACE
89
88
                             int(fraction*1000000))  # Microseconds
90
89
 
91
90
 
92
 
class MandosClientPropertyCache:
 
91
class MandosClientPropertyCache(object):
93
92
    """This wraps a Mandos Client D-Bus proxy object, caches the
94
93
    properties and calls a hook function when any of them are
95
94
    changed.
407
406
        return ret
408
407
 
409
408
 
410
 
class UserInterface:
 
409
class UserInterface(object):
411
410
    """This is the entire user interface - the whole screen
412
411
    with boxes, lists of client widgets, etc.
413
412
    """