コード例 #1
0
ファイル: service.py プロジェクト: tello/humble-pie
    def delete_template(self, template_id = None):
        """
        Delete Template specified by template_id

        API call used is v1/template (DELETE)

        @type template_id: int
        @param template_id: ID of the template to delete
        @return: None
        """
        temp_template = Template(api_client=self.api_client)
        temp_template.delete(template_id)
コード例 #2
0
ファイル: octohaven.py プロジェクト: sadikovi/octohaven
def template_delete_and_list(uid):
    template = Template.get(uid)
    if not template:
        raise StandardError("No template for id '%s'" % uid)
    Template.delete(template)
    return template_list()
コード例 #3
0
ファイル: octohaven.py プロジェクト: sadikovi/octohaven
def template_delete(uid):
    template = Template.get(uid)
    if not template:
        raise StandardError("No template for id '%s'" % uid)
    Template.delete(template)
    return success(template.json())