/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 Hogeborn
  • Date: 2019-11-23 22:27:35 UTC
  • 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]))
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
    """