summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-12-17 16:43:42 +0000
committerRafael H. Schloming <rhs@apache.org>2009-12-17 16:43:42 +0000
commit9bd6e56199e52d025061d6e568727306138045ab (patch)
tree5beda6738a8bbeafb8b713593ab7b0de62926458
parent69d56a233cd6dbe02287c8a237a18fbc7505f140 (diff)
downloadqpid-python-9bd6e56199e52d025061d6e568727306138045ab.tar.gz
QPID-2292: added the redelivered flag to the message class
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@891794 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--python/qpid/driver.py1
-rw-r--r--python/qpid/messaging.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/python/qpid/driver.py b/python/qpid/driver.py
index e31276ad7b..2851c3aad3 100644
--- a/python/qpid/driver.py
+++ b/python/qpid/driver.py
@@ -852,6 +852,7 @@ class Driver:
msg.reply_to = reply_to2addr(mp.reply_to)
msg.correlation_id = mp.correlation_id
msg.durable = dp.delivery_mode == delivery_mode.persistent
+ msg.redelivered = dp.redelivered
msg.properties = mp.application_headers
msg.content_type = mp.content_type
msg._transfer_id = xfr.id
diff --git a/python/qpid/messaging.py b/python/qpid/messaging.py
index 5dd8b22ee3..4f2c190ce2 100644
--- a/python/qpid/messaging.py
+++ b/python/qpid/messaging.py
@@ -787,6 +787,7 @@ class Message:
self.reply_to = reply_to
self.correlation_id = correlation_id
self.durable = durable
+ self.redelivered = False
if properties is None:
self.properties = {}
else: