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

Unified Diff: boto/cloudformation/template.py

Issue 8386013: Merging in latest boto. (Closed) Base URL: svn://svn.chromium.org/boto
Patch Set: Redoing vendor drop by deleting and then merging. Created 9 years, 2 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 | « boto/cloudformation/stack.py ('k') | boto/cloudfront/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: boto/cloudformation/template.py
diff --git a/boto/cloudformation/template.py b/boto/cloudformation/template.py
new file mode 100644
index 0000000000000000000000000000000000000000..f1f8501835a9b20bb54bd990e4f9956bba185f2d
--- /dev/null
+++ b/boto/cloudformation/template.py
@@ -0,0 +1,43 @@
+from boto.resultset import ResultSet
+
+class Template:
+ def __init__(self, connection=None):
+ self.connection = connection
+ self.description = None
+ self.template_parameters = None
+
+ def startElement(self, name, attrs, connection):
+ if name == "Parameters":
+ self.template_parameters = ResultSet([('member', TemplateParameter)])
+ return self.template_parameters
+ else:
+ return None
+
+ def endElement(self, name, value, connection):
+ if name == "Description":
+ self.description = value
+ else:
+ setattr(self, name, value)
+
+class TemplateParameter:
+ def __init__(self, parent):
+ self.parent = parent
+ self.default_value = None
+ self.description = None
+ self.no_echo = None
+ self.parameter_key = None
+
+ def startElement(self, name, attrs, connection):
+ return None
+
+ def endElement(self, name, value, connection):
+ if name == "DefaultValue":
+ self.default_value = value
+ elif name == "Description":
+ self.description = value
+ elif name == "NoEcho":
+ self.no_echo = bool(value)
+ elif name == "ParameterKey":
+ self.parameter_key = value
+ else:
+ setattr(self, name, value)
« no previous file with comments | « boto/cloudformation/stack.py ('k') | boto/cloudfront/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698