예제 #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,
     )
예제 #2
0
파일: error.py 프로젝트: cc1-cloud/cc1
 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,
     )
예제 #3
0
파일: action.py 프로젝트: cc1-cloud/cc1
 def _get_template(self):
     name = '%s.xml' % self.parameters.get('Action')
     return lookup.get_template(name)
예제 #4
0
 def _get_template(self):
     name = '%s.xml' % self.parameters.get('Action')
     return lookup.get_template(name)
예제 #5
0
파일: s3action.py 프로젝트: pojoba02/cc1
 def _get_template(self):
     name = "%s.xml" % self.concrete_class_name
     return lookup.get_template(name)
예제 #6
0
 def _get_template(self):
     name = '%s.xml' % self.concrete_class_name
     return lookup.get_template(name)