diff options
| author | Alan Conway <aconway@apache.org> | 2007-03-19 19:19:53 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-03-19 19:19:53 +0000 |
| commit | 27e6ef93eea10d1aeb7ca6a6a37926aa5f85c380 (patch) | |
| tree | d213b305b08d37e5d1d1eb628cd8544070c1599a /python/qpid/peer.py | |
| parent | 776c3c3a9a37b5ec4f75b40c406aabba55fd30ec (diff) | |
| download | qpid-python-27e6ef93eea10d1aeb7ca6a6a37926aa5f85c380.tar.gz | |
* python/testlib.py: -s (spec) option now also takes abbreviations "0-8" and "0-9"
to load default 0-8 or 0-9 XML respectively. Default is still 0-8.
Merged revisions 501586 via svnmerge from
https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9
........
r501586 | rhs | 2007-01-30 16:44:41 -0500 (Tue, 30 Jan 2007) | 1 line
updated python spec parse to load from multiple files, changed default specs to include errata
........
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@520051 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/peer.py')
| -rw-r--r-- | python/qpid/peer.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/python/qpid/peer.py b/python/qpid/peer.py index 8d5029004e..b5c655dc2a 100644 --- a/python/qpid/peer.py +++ b/python/qpid/peer.py @@ -220,6 +220,8 @@ class Channel: work.put(self.incoming) elif isinstance(frame, Response): self.requester.receive(self, frame) + if frame.method_type.content: + self.queue = self.responses return self.queue.put(frame) @@ -241,7 +243,11 @@ class Channel: return None try: resp = self.responses.get() - return Message(self, resp) + if resp.method_type.content: + return Message(self, resp, read_content(self.responses)) + else: + return Message(self, resp) + except QueueClosed, e: if self.closed: raise Closed(self.reason) |
