diff options
author | Ted Ross <tross@apache.org> | 2009-06-19 20:46:05 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2009-06-19 20:46:05 +0000 |
commit | f058de0f9c944bb38c2dfd0e53b5a52d3026434c (patch) | |
tree | 3ff57061db7f5405b046d74cd536b11224a7ae8d /python/qmf/console.py | |
parent | 20f74c4f37b906ac1654fded3b099ed74b3a6490 (diff) | |
download | qpid-python-f058de0f9c944bb38c2dfd0e53b5a52d3026434c.tar.gz |
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/qpid@786661 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qmf/console.py')
-rw-r--r-- | python/qmf/console.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/python/qmf/console.py b/python/qmf/console.py index 36553562f7..1527c7849a 100644 --- a/python/qmf/console.py +++ b/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: |