Ejemplo n.º 1
0
 def to_xml(self):
     """Return XML with error details compatible with Amazon EC2 WSDL."""
     template = lookup.get_template('error.xml')
     return template.render(
         code=self.code,
         message=self.message % self.context,
     )
Ejemplo n.º 2
0
 def to_xml(self):
     """Return XML with error details compatible with Amazon EC2 WSDL."""
     template = lookup.get_template('error.xml')
     return template.render(
         code=self.code,
         message=self.message % self.context,
     )
Ejemplo n.º 3
0
 def _get_template(self):
     name = '%s.xml' % self.parameters.get('Action')
     return lookup.get_template(name)
Ejemplo n.º 4
0
 def _get_template(self):
     name = '%s.xml' % self.parameters.get('Action')
     return lookup.get_template(name)
Ejemplo n.º 5
0
 def _get_template(self):
     name = "%s.xml" % self.concrete_class_name
     return lookup.get_template(name)
Ejemplo n.º 6
0
 def _get_template(self):
     name = '%s.xml' % self.concrete_class_name
     return lookup.get_template(name)