You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2009/06/19 22:46:06 UTC

svn commit: r786661 - /qpid/trunk/qpid/python/qmf/console.py

Author: tross
Date: Fri Jun 19 20:46:05 2009
New Revision: 786661

URL: http://svn.apache.org/viewvc?rev=786661&view=rev
Log:
QPID-1920 - bug fix patch from Bryan Kearney
Python Console puts presence masks in the wrong location when marshalling unmanaged objects

Modified:
    qpid/trunk/qpid/python/qmf/console.py

Modified: qpid/trunk/qpid/python/qmf/console.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qmf/console.py?rev=786661&r1=786660&r2=786661&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qmf/console.py (original)
+++ qpid/trunk/qpid/python/qmf/console.py Fri Jun 19 20:46:05 2009
@@ -347,6 +347,12 @@
     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 @@
           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:



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org