diff env/lib/python3.7/site-packages/boto/cloudformation/template.py @ 5:9b1c78e6ba9c draft default tip

"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
author shellac
date Mon, 01 Jun 2020 08:59:25 -0400
parents 79f47841a781
children
line wrap: on
line diff
--- a/env/lib/python3.7/site-packages/boto/cloudformation/template.py	Thu May 14 16:47:39 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,51 +0,0 @@
-from boto.resultset import ResultSet
-from boto.cloudformation.stack import Capability
-
-class Template(object):
-    def __init__(self, connection=None):
-        self.connection = connection
-        self.description = None
-        self.template_parameters = None
-        self.capabilities_reason = None
-        self.capabilities = None
-
-    def startElement(self, name, attrs, connection):
-        if name == "Parameters":
-            self.template_parameters = ResultSet([('member', TemplateParameter)])
-            return self.template_parameters
-        elif name == "Capabilities":
-            self.capabilities = ResultSet([('member', Capability)])
-            return self.capabilities
-        else:
-            return None
-
-    def endElement(self, name, value, connection):
-        if name == "Description":
-            self.description = value
-        elif name == "CapabilitiesReason":
-            self.capabilities_reason = value
-        else:
-            setattr(self, name, value)
-
-class TemplateParameter(object):
-    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)