summaryrefslogtreecommitdiff
path: root/qpid/python
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
commit72961d9b9a4b70b85affbba1d14ec5b913ec5815 (patch)
treecc764372d9ce25a4cfb148d6027a84193cbe23ed /qpid/python
parent650dc8949488e88797a61908723619aca5fc8909 (diff)
downloadqpid-python-72961d9b9a4b70b85affbba1d14ec5b913ec5815.tar.gz
allow creation of objectId from first/second id components
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@692525 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/management.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/qpid/python/qpid/management.py b/qpid/python/qpid/management.py
index 99c902ab30..8d8339b2c6 100644
--- a/qpid/python/qpid/management.py
+++ b/qpid/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: