You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2007/02/05 21:33:04 UTC
svn commit: r503857 -
/incubator/qpid/branches/qpid.0-9/python/qpid/connection.py
Author: aconway
Date: Mon Feb 5 12:33:03 2007
New Revision: 503857
URL: http://svn.apache.org/viewvc?view=rev&rev=503857
Log:
Added missing __str__ method for Responses.
Modified:
incubator/qpid/branches/qpid.0-9/python/qpid/connection.py
Modified: incubator/qpid/branches/qpid.0-9/python/qpid/connection.py
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/qpid.0-9/python/qpid/connection.py?view=diff&rev=503857&r1=503856&r2=503857
==============================================================================
--- incubator/qpid/branches/qpid.0-9/python/qpid/connection.py (original)
+++ incubator/qpid/branches/qpid.0-9/python/qpid/connection.py Mon Feb 5 12:33:03 2007
@@ -113,6 +113,7 @@
garbage += chr(end)
end = c.decode_octet()
raise "frame error: expected %r, got %r" % (self.FRAME_END, garbage)
+ print "==== FRAME ", frame
return frame
class Frame:
@@ -231,6 +232,9 @@
batch_offset = dec.decode_long()
method = Method.decode(spec, dec, size - 20)
return Response(id, request_id, batch_offset, method)
+
+ def __str__(self):
+ return "[%s] Response(%s,%s,%s) %s" % (self.channel, self.id, self.request_id, self.batch_offset, self.method)
class Header(Frame):