| 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)
|
|
|
|
|