summaryrefslogtreecommitdiff
path: root/python/qpid/spec.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2007-08-22 13:39:04 +0000
committerRafael H. Schloming <rhs@apache.org>2007-08-22 13:39:04 +0000
commit51c4f612aec73b473477cacb786865c76284e002 (patch)
tree64ab65d87efae9f81ca6e342693cb44f53e458c5 /python/qpid/spec.py
parentcaa402b97879d849273604842c1ec6bb63e40f26 (diff)
downloadqpid-python-51c4f612aec73b473477cacb786865c76284e002.tar.gz
added support for 0-10 style header encoding
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@568607 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/spec.py')
-rw-r--r--python/qpid/spec.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/qpid/spec.py b/python/qpid/spec.py
index 8a511bcb3d..3febab7e09 100644
--- a/python/qpid/spec.py
+++ b/python/qpid/spec.py
@@ -298,7 +298,10 @@ class Field(Metadata):
self.docs = docs
def default(self):
- return Method.DEFAULTS[self.type]
+ if isinstance(self.type, Struct):
+ return None
+ else:
+ return Method.DEFAULTS[self.type]
def get_result(nd, spec):
result = nd["result"]