summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-02-07 16:09:16 +0000
committerGordon Sim <gsim@apache.org>2007-02-07 16:09:16 +0000
commit8b788ecf42497abac3c03b4e7dc1137692b9eabc (patch)
tree22ae24fc431c347c3203bc6f5cd1ebc74b8a0e18 /python
parentc9ca9e1767b66d31fe9180fbd245508f60eaba8f (diff)
downloadqpid-python-8b788ecf42497abac3c03b4e7dc1137692b9eabc.tar.gz
Added list of valid responses to method descriptions where appropriate.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@504601 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/qpid/spec.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/qpid/spec.py b/python/qpid/spec.py
index ffd7b5a454..e430c45b96 100644
--- a/python/qpid/spec.py
+++ b/python/qpid/spec.py
@@ -208,6 +208,10 @@ class Method(Metadata):
if f.docs:
s += "\n\n" + "\n\n".join([fill(f.docs[0], 4, f.name)] +
[fill(d, 4) for d in f.docs[1:]])
+ if self.responses:
+ s += "\n\nValid responses: "
+ for r in self.responses:
+ s += r.name + " "
return s
METHOD = "__method__"