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

Side by Side Diff: third_party/boto/boto/fps/response.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/boto/boto/exception.py ('k') | third_party/boto/boto/glacier/__init__.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 Andy Davidoff http://www.disruptek.com/
2 # Copyright (c) 2010 Jason R. Coombs http://www.jaraco.com/
3 # Copyright (c) 2008 Chris Moyer http://coredumped.org/
4 # Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.org/
5 #
6 # Permission is hereby granted, free of charge, to any person obtaining a
7 # copy of this software and associated documentation files (the
8 # "Software"), to deal in the Software without restriction, including
9 # without limitation the rights to use, copy, modify, merge, publish, dis-
10 # tribute, sublicense, and/or sell copies of the Software, and to permit
11 # persons to whom the Software is furnished to do so, subject to the fol-
12 # lowing conditions:
13 #
14 # The above copyright notice and this permission notice shall be included
15 # in all copies or substantial portions of the Software.
16 #
17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
19 # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
20 # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23 # IN THE SOFTWARE.
1 from decimal import Decimal 24 from decimal import Decimal
2 25
3 26
4 def ResponseFactory(action): 27 def ResponseFactory(action):
5 class FPSResponse(Response): 28 class FPSResponse(Response):
6 _action = action 29 _action = action
7 _Result = globals().get(action + 'Result', ResponseElement) 30 _Result = globals().get(action + 'Result', ResponseElement)
8 31
9 # due to nodes receiving their closing tags 32 # due to nodes receiving their closing tags
10 def endElement(self, name, value, connection): 33 def endElement(self, name, value, connection):
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 def __init__(self, *args, **kw): 197 def __init__(self, *args, **kw):
175 self.Token = [] 198 self.Token = []
176 super(GetTokensResult, self).__init__(*args, **kw) 199 super(GetTokensResult, self).__init__(*args, **kw)
177 200
178 def startElement(self, name, attrs, connection): 201 def startElement(self, name, attrs, connection):
179 if name == 'Token': 202 if name == 'Token':
180 getattr(self, name).append(ResponseElement(name=name)) 203 getattr(self, name).append(ResponseElement(name=name))
181 return getattr(self, name)[-1] 204 return getattr(self, name)[-1]
182 return super(GetTokensResult, self).startElement(name, attrs, 205 return super(GetTokensResult, self).startElement(name, attrs,
183 connection) 206 connection)
OLDNEW
« no previous file with comments | « third_party/boto/boto/exception.py ('k') | third_party/boto/boto/glacier/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698