コード例 #1
0
ファイル: error.py プロジェクト: th3n3xtg3n3ration/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,
     )
コード例 #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
ファイル: action.py プロジェクト: th3n3xtg3n3ration/cc1
 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)