diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2007-08-10 15:55:16 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2007-08-10 15:55:16 +0000 |
| commit | 01652ef4ec4d7a92bfdcf677c27fb28968398bc6 (patch) | |
| tree | 495a8d994def30a30512beaf4077643c41cff332 /python/qpid/content.py | |
| parent | 6577b14632d81c15482cb0793e01166cdb28eaff (diff) | |
| download | qpid-python-01652ef4ec4d7a92bfdcf677c27fb28968398bc6.tar.gz | |
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
Diffstat (limited to 'python/qpid/content.py')
| -rw-r--r-- | python/qpid/content.py | 8 |
1 files changed, 8 insertions, 0 deletions
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) |
