diff options
| author | Gordon Sim <gsim@apache.org> | 2007-07-24 14:08:32 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-07-24 14:08:32 +0000 |
| commit | 9f120205e0d7a0b2666b9fd21a5296db07e32fd8 (patch) | |
| tree | b263ca1fa1863eca341d370dc5dd29ef97bc91bd /python/qpid/spec.py | |
| parent | 6aa2316d7712a709e9782919afd2a14cfaafc7a9 (diff) | |
| download | qpid-python-9f120205e0d7a0b2666b9fd21a5296db07e32fd8.tar.gz | |
Some initial 0-10 support including placeholders for new domains, use of execution layer for synchronising methods with no explicit responses and a new set of tests (mainly just copies of the 0-9 ones, but these will be altered as 0-10 support progresses).
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@559055 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/spec.py')
| -rw-r--r-- | python/qpid/spec.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/python/qpid/spec.py b/python/qpid/spec.py index 88faedd825..c537401164 100644 --- a/python/qpid/spec.py +++ b/python/qpid/spec.py @@ -237,7 +237,11 @@ class Method(Metadata): "long": 0, "longlong": 0, "timestamp": 0, - "content": None} + "content": None, + "uuid": "", + "rfc1982_long": 0, + "rfc1982_long_set": 0 + } def define_method(self, name): g = {Method.METHOD: self} @@ -306,7 +310,9 @@ def load(specfile, *errata): for root in [spec_root] + map(lambda x: mllib.xml_parse(x)["amqp"], errata): # constants for nd in root.query["constant"]: - const = Constant(spec, pythonize(nd["@name"]), int(nd["@value"]), + val = nd["@value"] + if val.startswith("0x"): continue + const = Constant(spec, pythonize(nd["@name"]), int(val), nd["@class"], get_docs(nd)) try: spec.constants.add(const) |
