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

Unified Diff: third_party/boto/boto/ecs/item.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/ecs/__init__.py ('k') | third_party/boto/boto/elasticache/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/boto/boto/ecs/item.py
===================================================================
--- third_party/boto/boto/ecs/item.py (revision 33376)
+++ third_party/boto/boto/ecs/item.py (working copy)
@@ -90,14 +90,14 @@
def __init__(self, connection=None):
"""Initialize this Item"""
- super(Item, self).__init__(connection, "Item")
+ ResponseGroup.__init__(self, connection, "Item")
class ItemSet(ResponseGroup):
"""A special ResponseGroup that has built-in paging, and
only creates new Items on the "Item" tag"""
def __init__(self, connection, action, params, page=0):
- super(ItemSet, self).__init__(connection, "Items")
+ ResponseGroup.__init__(self, connection, "Items")
self.objs = []
self.iter = None
self.page = page
@@ -106,6 +106,8 @@
self.curItem = None
self.total_results = 0
self.total_pages = 0
+ self.is_valid = False
+ self.errors = []
def startElement(self, name, attrs, connection):
if name == "Item":
@@ -119,7 +121,14 @@
self.total_results = value
elif name == 'TotalPages':
self.total_pages = value
- elif name == "Item":
+ elif name == 'IsValid':
+ if value == 'True':
+ self.is_valid = True
+ elif name == 'Code':
+ self.errors.append({'Code': value, 'Message': None})
+ elif name == 'Message':
+ self.errors[-1]['Message'] = value
+ elif name == 'Item':
self.objs.append(self.curItem)
self._xml.write(self.curItem.to_xml())
self.curItem = None
@@ -150,4 +159,4 @@
"""Override to first fetch everything"""
for item in self:
pass
- return super(ItemSet, self).to_xml()
+ return ResponseGroup.to_xml(self)
« no previous file with comments | « third_party/boto/boto/ecs/__init__.py ('k') | third_party/boto/boto/elasticache/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698