diff options
| author | Nuno Santos <nsantos@apache.org> | 2008-09-05 20:14:29 +0000 |
|---|---|---|
| committer | Nuno Santos <nsantos@apache.org> | 2008-09-05 20:14:29 +0000 |
| commit | f09e63101fdf71a796d3e8eb874f94a16541352e (patch) | |
| tree | 6bf25ed4395cf7d23bc1ec904b07a902a0a5cceb /python/qpid/management.py | |
| parent | 98ec4b4e9226b7d9221dfd5a8eeddd408e3e1caf (diff) | |
| download | qpid-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.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: |
