summaryrefslogtreecommitdiff
path: root/python/qpid/codec010.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-03-05 19:56:43 +0000
committerGordon Sim <gsim@apache.org>2008-03-05 19:56:43 +0000
commit7e162fa97ef0d430714b9630121a055fe5adece9 (patch)
tree3e0a99d34d9718837a44802683f7fe6f49785613 /python/qpid/codec010.py
parent86779be122dea590bc1e5201c58777ea3e362a95 (diff)
downloadqpid-python-7e162fa97ef0d430714b9630121a055fe5adece9.tar.gz
forked python tests for 0-10 preview and 0-10 final
fixed result handling in c++ broker modified testlib in python to allow new 0-10 client to be run as well converted query tests for final 0-10 added python tests for 0-10 final to automated set for c++ broker (most unconverted still) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@634003 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/codec010.py')
-rw-r--r--python/qpid/codec010.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/python/qpid/codec010.py b/python/qpid/codec010.py
index 5894981fc6..2dcba4e917 100644
--- a/python/qpid/codec010.py
+++ b/python/qpid/codec010.py
@@ -111,6 +111,11 @@ class Codec(Packer):
def write_str8(self, s):
self.write_vbin8(s.encode("utf8"))
+ def read_str16(self):
+ return self.read_vbin16().decode("utf8")
+ def write_str16(self, s):
+ self.write_vbin16(s.encode("utf8"))
+
def read_vbin16(self):
return self.read(self.read_uint16())
@@ -125,9 +130,10 @@ class Codec(Packer):
self.write(b)
def write_map(self, m):
- pass
+ self.write_uint32(0) #hack
def read_map(self):
- pass
+ size = self.read_uint32() #hack
+ self.read(size) #hack
def write_array(self, a):
pass