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

Unified Diff: third_party/gsutil/boto/boto/iam/summarymap.py

Issue 10199002: Upgrade gsutil to 3.4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 8 years, 8 months 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/gsutil/boto/boto/iam/connection.py ('k') | third_party/gsutil/boto/boto/jsonresponse.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gsutil/boto/boto/iam/summarymap.py
diff --git a/third_party/gsutil/20110627/boto/boto/ec2/autoscale/request.py b/third_party/gsutil/boto/boto/iam/summarymap.py
similarity index 72%
rename from third_party/gsutil/20110627/boto/boto/ec2/autoscale/request.py
rename to third_party/gsutil/boto/boto/iam/summarymap.py
index c066dff5bec6728430eb66babb4a63a025288c22..00023895f32c44ef27a050d0f3fa4bece12de4c8 100644
--- a/third_party/gsutil/20110627/boto/boto/ec2/autoscale/request.py
+++ b/third_party/gsutil/boto/boto/iam/summarymap.py
@@ -1,4 +1,5 @@
-# Copyright (c) 2009 Reza Lotun http://reza.lotun.name/
+# Copyright (c) 2010 Mitch Garnaat http://garnaat.org/
+# Copyright (c) 2010, Eucalyptus Systems, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
@@ -19,20 +20,23 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
-class Request(object):
- def __init__(self, connection=None):
- self.connection = connection
- self.request_id = ''
+class SummaryMap(dict):
- def __repr__(self):
- return 'Request:%s' % self.request_id
+ def __init__(self, parent=None):
+ self.parent = parent
+ dict.__init__(self)
def startElement(self, name, attrs, connection):
- return None
+ pass
def endElement(self, name, value, connection):
- if name == 'RequestId':
- self.request_id = value
+ if name == 'key':
+ self._name = value
+ elif name == 'value':
+ try:
+ self[self._name] = int(value)
+ except ValueError:
+ self[self._name] = value
else:
setattr(self, name, value)
« no previous file with comments | « third_party/gsutil/boto/boto/iam/connection.py ('k') | third_party/gsutil/boto/boto/jsonresponse.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698