summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2007-10-16 10:21:20 +0000
committerAndrew Stitcher <astitcher@apache.org>2007-10-16 10:21:20 +0000
commit2e7a0f670684ccd696316666c6a1d61849f67e80 (patch)
tree0f950e109fee382ef06a1997d2edca1a3d39cdd0 /qpid/python
parent91ac5922f2d5aa5ca0ad01b9e23271e90c1c8bcc (diff)
downloadqpid-python-2e7a0f670684ccd696316666c6a1d61849f67e80.tar.gz
Implementation of 0-10 field tables
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@585097 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/cpp_failing_0-10.txt3
-rw-r--r--qpid/python/qpid/codec.py9
2 files changed, 7 insertions, 5 deletions
diff --git a/qpid/python/cpp_failing_0-10.txt b/qpid/python/cpp_failing_0-10.txt
index 8a8a3e1b20..80e3d44935 100644
--- a/qpid/python/cpp_failing_0-10.txt
+++ b/qpid/python/cpp_failing_0-10.txt
@@ -1,3 +1,6 @@
+tests.codec.FieldTableTestCase.test_field_table_decode
+tests.codec.FieldTableTestCase.test_field_table_multiple_name_value_pair
+tests.codec.FieldTableTestCase.test_field_table_name_value_pair
tests_0-10.alternate-exchange.AlternateExchangeTests.test_immediate
tests_0-10.broker.BrokerTests.test_closed_channel
diff --git a/qpid/python/qpid/codec.py b/qpid/python/qpid/codec.py
index c54d48df52..18928698a5 100644
--- a/qpid/python/qpid/codec.py
+++ b/qpid/python/qpid/codec.py
@@ -68,11 +68,10 @@ class Codec:
dict: "table"
}
- if False:
- for constant in self.spec.constants:
- if constant.klass == "field-table-type":
- type = constant.name.replace("field_table_", "")
- self.typecode(constant.id, TYPE_ALIASES.get(type, type))
+ for constant in self.spec.constants:
+ if constant.klass == "field-table-type":
+ type = constant.name.replace("field_table_", "")
+ self.typecode(constant.id, TYPE_ALIASES.get(type, type))
if not self.types:
self.typecode(ord('S'), "longstr")