Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: third_party/boto/boto/sqs/message.py

Issue 698893003: Update checked in version of gsutil to version 4.6 (Closed) Base URL: http://dart.googlecode.com/svn/third_party/gsutil/
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/boto/boto/sqs/connection.py ('k') | third_party/boto/boto/sqs/messageattributes.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/boto/boto/sqs/message.py
===================================================================
--- third_party/boto/boto/sqs/message.py (revision 33376)
+++ third_party/boto/boto/sqs/message.py (working copy)
@@ -66,6 +66,7 @@
import base64
import StringIO
from boto.sqs.attributes import Attributes
+from boto.sqs.messageattributes import MessageAttributes
from boto.exception import SQSDecodeError
import boto
@@ -84,6 +85,8 @@
self.receipt_handle = None
self.md5 = None
self.attributes = Attributes(self)
+ self.message_attributes = MessageAttributes(self)
+ self.md5_message_attributes = None
def __len__(self):
return len(self.encode(self._body))
@@ -91,6 +94,8 @@
def startElement(self, name, attrs, connection):
if name == 'Attribute':
return self.attributes
+ if name == 'MessageAttribute':
+ return self.message_attributes
return None
def endElement(self, name, value, connection):
@@ -100,8 +105,10 @@
self.id = value
elif name == 'ReceiptHandle':
self.receipt_handle = value
- elif name == 'MD5OfMessageBody':
+ elif name == 'MD5OfBody':
self.md5 = value
+ elif name == 'MD5OfMessageAttributes':
+ self.md5_message_attributes = value
else:
setattr(self, name, value)
« no previous file with comments | « third_party/boto/boto/sqs/connection.py ('k') | third_party/boto/boto/sqs/messageattributes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698