diff options
Diffstat (limited to 'python/qpid/management.py')
| -rw-r--r-- | python/qpid/management.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/python/qpid/management.py b/python/qpid/management.py index 99c902ab30..8d8339b2c6 100644 --- a/python/qpid/management.py +++ b/python/qpid/management.py @@ -72,9 +72,13 @@ class mgmtObject (object): class objectId(object): """ Object that represents QMF object identifiers """ - def __init__(self, codec): - self.first = codec.read_uint64() - self.second = codec.read_uint64() + def __init__(self, codec, first=0, second=0): + if codec: + self.first = codec.read_uint64() + self.second = codec.read_uint64() + else: + self.first = first + self.second = second def __cmp__(self, other): if other == None: |
