From 2bb04f798f13d3120096a9fb2ee30d224fbd981a Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Thu, 31 Jul 2008 21:58:39 +0000 Subject: 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 --- python/qpid/managementdata.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'python/qpid/managementdata.py') diff --git a/python/qpid/managementdata.py b/python/qpid/managementdata.py index f6ebf4a381..e75cd8a99d 100644 --- a/python/qpid/managementdata.py +++ b/python/qpid/managementdata.py @@ -222,7 +222,8 @@ class ManagementData: if item[0] == key: typecode = item[1] unit = item[2] - if (typecode >= 1 and typecode <= 5) or typecode == 12 or typecode == 13: # numerics + if (typecode >= 1 and typecode <= 5) or typecode == 12 or typecode == 13 or \ + (typecode >= 16 and typecode <= 19): if unit == None or unit == self.lastUnit: return str (value) else: @@ -329,6 +330,14 @@ class ManagementData: return "uuid" elif typecode == 15: return "field-table" + elif typecode == 16: + return "int8" + elif typecode == 17: + return "int16" + elif typecode == 18: + return "int32" + elif typecode == 19: + return "int64" else: raise ValueError ("Invalid type code: %d" % typecode) -- cgit v1.2.1