Example #1
0
 def _removeTemplate(self, action, template_name):
     Resource._removeTemplate(self, action, template_name)
     if self.isGeneric():
         self.ruleset.generic_links.removeTemplateAction(
             action,
             template_name,
             "interfaces",
             self,
             tr('Unable to delete the template "%s": the generic interface %s is not defined'),
         )
Example #2
0
 def _removeTemplate(self, action, template_name):
     Resource._removeTemplate(self, action, template_name)
     if self.isGeneric():
         self.ruleset.generic_links.removeTemplateAction(
             action, template_name, 'networks', self,
             tr('Unable to delete the template "%s": the generic network %s is not defined'))