summaryrefslogtreecommitdiff
path: root/python/qpid/management.py
diff options
context:
space:
mode:
authorNuno Santos <nsantos@apache.org>2008-09-05 20:14:29 +0000
committerNuno Santos <nsantos@apache.org>2008-09-05 20:14:29 +0000
commitf09e63101fdf71a796d3e8eb874f94a16541352e (patch)
tree6bf25ed4395cf7d23bc1ec904b07a902a0a5cceb /python/qpid/management.py
parent98ec4b4e9226b7d9221dfd5a8eeddd408e3e1caf (diff)
downloadqpid-python-f09e63101fdf71a796d3e8eb874f94a16541352e.tar.gz
allow creation of objectId from first/second id components
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@692525 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/management.py')
-rw-r--r--python/qpid/management.py10
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: