summaryrefslogtreecommitdiff
path: root/python/qpid/management.py
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-07-31 21:58:39 +0000
committerTed Ross <tross@apache.org>2008-07-31 21:58:39 +0000
commit2bb04f798f13d3120096a9fb2ee30d224fbd981a (patch)
treee30452f821a548f769af215f00d4424870b99ef5 /python/qpid/management.py
parentb9d38e9f08908220f9bbf804a45656e4205e3dfd (diff)
downloadqpid-python-2bb04f798f13d3120096a9fb2ee30d224fbd981a.tar.gz
Added signed integer datatypes for use in management schemas
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@681512 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/management.py')
-rw-r--r--python/qpid/management.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/python/qpid/management.py b/python/qpid/management.py
index 1059c70ada..83c29a78a5 100644
--- a/python/qpid/management.py
+++ b/python/qpid/management.py
@@ -397,6 +397,14 @@ class managementClient:
codec.write_uuid (value)
elif typecode == 15: # FTABLE
codec.write_map (value)
+ elif typecode == 16:
+ codec.write_int8 (int(value))
+ elif typecode == 17:
+ codec.write_int16 (int(value))
+ elif typecode == 18:
+ codec.write_int32 (int(value))
+ elif typecode == 19:
+ codec.write_int64 (int(value))
else:
raise ValueError ("Invalid type code: %d" % typecode)
@@ -432,6 +440,14 @@ class managementClient:
data = codec.read_uuid ()
elif typecode == 15: # FTABLE
data = codec.read_map ()
+ elif typecode == 16:
+ data = codec.read_int8 ()
+ elif typecode == 17:
+ data = codec.read_int16 ()
+ elif typecode == 18:
+ data = codec.read_int32 ()
+ elif typecode == 19:
+ data = codec.read_int64 ()
else:
raise ValueError ("Invalid type code: %d" % typecode)
return data