From d8861ac8381d1feaf53c5af668a7c323ce3eac84 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 19 Jun 2009 20:46:05 +0000 Subject: QPID-1920 - bug fix patch from Bryan Kearney Python Console puts presence masks in the wrong location when marshalling unmanaged objects git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@786661 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/qmf/console.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/qpid/python/qmf/console.py b/qpid/python/qmf/console.py index 36553562f7..1527c7849a 100644 --- a/qpid/python/qmf/console.py +++ b/qpid/python/qmf/console.py @@ -347,6 +347,12 @@ class Object(object): raise Exception("Invalid Method (software defect) [%s]" % name) def _encodeUnmanaged(self, codec): + + codec.write_uint8(20) + codec.write_str8(self._schema.getKey().getPackageName()) + codec.write_str8(self._schema.getKey().getClassName()) + codec.write_bin128(self._schema.getKey().getHash()) + # emit presence masks for optional properties mask = 0 bit = 0 @@ -362,12 +368,7 @@ class Object(object): codec.write_uint8(mask) mask = 0 if bit != 0: - codec.write_uint8(mask) - - codec.write_uint8(20) - codec.write_str8(self._schema.getKey().getPackageName()) - codec.write_str8(self._schema.getKey().getClassName()) - codec.write_bin128(self._schema.getKey().getHash()) + codec.write_uint8(mask) # encode properties for prop, value in self._properties: -- cgit v1.2.1