summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/ops.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/qpid/python/qpid/ops.py b/qpid/python/qpid/ops.py
index 1f82889164..447f9953df 100644
--- a/qpid/python/qpid/ops.py
+++ b/qpid/python/qpid/ops.py
@@ -66,6 +66,12 @@ class Compound(object):
result[f.name] = getattr(self, f.name)
return result
+ def __getitem__(self, attr):
+ return getattr(self, attr)
+
+ def __setitem__(self, attr, value):
+ setattr(self, attr, value)
+
def dispatch(self, target, *args):
handler = "do_%s" % self.NAME
if hasattr(target, handler):