From 03cd19556c261f43a8d95bd7d803c59bd488aeef Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 21 Sep 2007 10:39:36 +0000 Subject: Use octet each for class and method id (changed c++ and python) Modified indexes in xml for message.empty, message.offset and the c++ cluster class Fixed encoding for rfc1982-long-set in c++ and python (its a size not a count that is prepended) Fixed minor typo in configuration option help string Use session.open/close in python tests, handle session.closed Commented out the response tag in session.close due to pythons ambiguity as to whether session.closed is a response or not Disabled broker.test_closed_channel (due to above issue); broker behaves as expected but test fails; test_invalid_channel is safe enough for now. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@578053 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/codec.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'python/qpid/codec.py') diff --git a/python/qpid/codec.py b/python/qpid/codec.py index c1a912f5d0..d0a95debb3 100644 --- a/python/qpid/codec.py +++ b/python/qpid/codec.py @@ -346,23 +346,22 @@ class Codec: return self.decode_long() def encode_rfc1982_long_set(self, s): - self.encode_short(len(s)) + self.encode_short(len(s) * 4) for i in s: self.encode_long(i) def decode_rfc1982_long_set(self): - count = self.decode_short() + count = self.decode_short() / 4 set = [] for i in range(0, count): set.append(self.decode_long()) return set; - #not correct for 0-10 yet def encode_uuid(self, s): - self.encode_longstr(s) + self.pack("16s", s) def decode_uuid(self): - return self.decode_longstr() + return self.unpack("16s") def encode_struct(self, type, s): for f in type.fields: -- cgit v1.2.1