From 01652ef4ec4d7a92bfdcf677c27fb28968398bc6 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Fri, 10 Aug 2007 15:55:16 +0000 Subject: added support for unpacked structs and execution.result git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@564637 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/content.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python/qpid/content.py') diff --git a/python/qpid/content.py b/python/qpid/content.py index bcbea1697c..9391f4f1a8 100644 --- a/python/qpid/content.py +++ b/python/qpid/content.py @@ -48,3 +48,11 @@ class Content: def __delitem__(self, name): del self.properties[name] + + def __str__(self): + if self.children: + return "%s [%s] %s" % (self.properties, + ", ".join(map(str, self.children)), + self.body) + else: + return "%s %s" % (self.properties, self.body) -- cgit v1.2.1