diff options
| author | Ted Ross <tross@apache.org> | 2009-12-11 13:52:48 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2009-12-11 13:52:48 +0000 |
| commit | fc7c0efc857cb6f6311bdf6bf6ddc30ff2048466 (patch) | |
| tree | d3b9733ded2a50b3adb39e34ae56e0e8d05a7801 /python | |
| parent | caaa1c00f62f11a1f046a7cf40583eedd2d873e3 (diff) | |
| download | qpid-python-fc7c0efc857cb6f6311bdf6bf6ddc30ff2048466.tar.gz | |
QPID-2245 QMF protocol changes will make 0.6 incompatible with 0.5
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@889619 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
| -rw-r--r-- | python/qmf/console.py | 31 | ||||
| -rw-r--r-- | python/qpid/management.py | 17 |
2 files changed, 9 insertions, 39 deletions
diff --git a/python/qmf/console.py b/python/qmf/console.py index 859ed94229..5348904097 100644 --- a/python/qmf/console.py +++ b/python/qmf/console.py @@ -958,17 +958,7 @@ class Session: elif typecode == 17: data = codec.read_int16() # S16 elif typecode == 18: data = codec.read_int32() # S32 elif typecode == 19: data = codec.read_int64() # S63 - elif typecode == 15: # FTABLE - data = {} - sc = Codec(codec.read_vbin32()) - if sc.encoded: - count = sc.read_uint32() - while count > 0: - k = sc.read_str8() - code = sc.read_uint8() - v = self._decodeValue(sc, code, broker) - data[k] = v - count -= 1 + elif typecode == 15: data = codec.read_map() # FTABLE elif typecode == 20: # OBJECT # Peek at the type, and if it is still 20 pull it decode. If # Not, call back into self. @@ -1031,18 +1021,7 @@ class Session: elif typecode == 18: codec.write_int32 (int(value)) # S32 elif typecode == 19: codec.write_int64 (int(value)) # S64 elif typecode == 20: value._encodeUnmanaged(codec) # OBJECT - elif typecode == 15: # FTABLE - sc = Codec() - if value is not None: - sc.write_uint32(len(value)) - for k, v in value.items(): - mtype = self.encoding(v) - sc.write_str8(k) - sc.write_uint8(mtype) - self._encodeValue(sc, v, mtype) - else: - sc.write_uint32(0) - codec.write_vbin32(sc.encoded) + elif typecode == 15: codec.write_map (value) # FTABLE elif typecode == 21: # List sc = Codec() self._encodeValue(sc, len(value), 3) @@ -1254,7 +1233,7 @@ class SchemaClass: self.arguments = [] self.session = session - hasSupertype = codec.read_uint8() + hasSupertype = 0 #codec.read_uint8() if self.kind == self.CLASS_KIND_TABLE: propCount = codec.read_uint16() statCount = codec.read_uint16() @@ -1729,7 +1708,7 @@ class Broker: """ Compose the header of a management message. """ codec.write_uint8(ord('A')) codec.write_uint8(ord('M')) - codec.write_uint8(ord('3')) + codec.write_uint8(ord('2')) codec.write_uint8(ord(opcode)) codec.write_uint32(seq) @@ -1743,7 +1722,7 @@ class Broker: if octet != 'M': return None, None octet = chr(codec.read_uint8()) - if octet != '3': + if octet != '2': return None, None opcode = chr(codec.read_uint8()) seq = codec.read_uint32() diff --git a/python/qpid/management.py b/python/qpid/management.py index 65807548e6..325ab4903d 100644 --- a/python/qpid/management.py +++ b/python/qpid/management.py @@ -400,7 +400,7 @@ class managementClient: """ Compose the header of a management message. """ codec.write_uint8 (ord ('A')) codec.write_uint8 (ord ('M')) - codec.write_uint8 (ord ('3')) + codec.write_uint8 (ord ('2')) codec.write_uint8 (opcode) codec.write_uint32 (seq) @@ -414,7 +414,7 @@ class managementClient: if octet != 'M': return None octet = chr (codec.read_uint8 ()) - if octet != '3': + if octet != '2': return None opcode = chr (codec.read_uint8 ()) seq = codec.read_uint32 () @@ -496,16 +496,7 @@ class managementClient: elif typecode == 14: # UUID data = codec.read_uuid () elif typecode == 15: # FTABLE - data = {} - sc = Codec(codec.read_vbin32()) - if sc.encoded: - count = sc.read_uint32() - while count > 0: - k = sc.read_str8() - code = sc.read_uint8() - v = self.decodeValue(sc, code) - data[k] = v - count -= 1 + data = codec.read_map () elif typecode == 16: data = codec.read_int8 () elif typecode == 17: @@ -680,7 +671,7 @@ class managementClient: packageName = codec.read_str8 () className = codec.read_str8 () hash = codec.read_bin128 () - hasSupertype = codec.read_uint8() + hasSupertype = 0 #codec.read_uint8() configCount = codec.read_uint16 () instCount = codec.read_uint16 () methodCount = codec.read_uint16 () |
