Esempio n. 1
0
    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)
Esempio n. 2
0
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()
Esempio n. 3
0
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())