Beispiel #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,
     )
Beispiel #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,
     )
Beispiel #3
0
 def _get_template(self):
     name = '%s.xml' % self.parameters.get('Action')
     return lookup.get_template(name)
Beispiel #4
0
 def _get_template(self):
     name = '%s.xml' % self.parameters.get('Action')
     return lookup.get_template(name)
Beispiel #5
0
 def _get_template(self):
     name = "%s.xml" % self.concrete_class_name
     return lookup.get_template(name)
Beispiel #6
0
 def _get_template(self):
     name = '%s.xml' % self.concrete_class_name
     return lookup.get_template(name)