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/24 00:00:52 UTC

svn commit: r787851 - /qpid/trunk/qpid/python/qpid/management.py

Author: tross
Date: Tue Jun 23 22:00:51 2009
New Revision: 787851

URL: http://svn.apache.org/viewvc?rev=787851&view=rev
Log:
Fixed bug in decoding field tables (maps)

Modified:
    qpid/trunk/qpid/python/qpid/management.py

Modified: qpid/trunk/qpid/python/qpid/management.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/management.py?rev=787851&r1=787850&r2=787851&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/management.py (original)
+++ qpid/trunk/qpid/python/qpid/management.py Tue Jun 23 22:00:51 2009
@@ -497,7 +497,16 @@
     elif typecode == 14: # UUID
       data = codec.read_uuid ()
     elif typecode == 15: # FTABLE
-      data = codec.read_map ()
+      data = {}
+      sc = Codec(codec.spec, 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
     elif typecode == 16:
       data = codec.read_int8 ()
     elif typecode == 17:



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