From 719c2529a14527c236e871603136ccbe44f632d3 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 26 Mar 2008 18:38:35 +0000 Subject: Update to dtx inline with latest spec: * Updated dtx handling in c++ broker to take account of separation of completion and acceptance. * Added final dtx method defs to extra xml fragment and implemented appropriate handlers in c++ broker. * Converted dtx python tests (recover test still requires some work on decoding arrays). * Allow creation of structs without type codes through a python session method. * Fixed exception handling in python client for commands with results. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@641464 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/spec010.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/qpid/spec010.py') diff --git a/python/qpid/spec010.py b/python/qpid/spec010.py index 815c1d064a..4eb03008d0 100644 --- a/python/qpid/spec010.py +++ b/python/qpid/spec010.py @@ -257,6 +257,7 @@ class Struct(Composite): Composite.register(self, node) if self.code is not None: self.spec.structs[self.code] = self + self.spec.structs_by_name[self.name] = self def __str__(self): fields = ",\n ".join(["%s: %s" % (f.name, f.type.qname) @@ -443,6 +444,7 @@ class Spec(Node): self.controls = {} self.commands = {} self.structs = {} + self.structs_by_name = {} def encoding(self, klass): if Spec.ENCODINGS.has_key(klass): -- cgit v1.2.1