コード例 #1
0
ファイル: user_group.py プロジェクト: maximerobin/Ufwi
 def _removeTemplate(self, action, template_name):
     Object._removeTemplate(self, action, template_name)
     if self.isGeneric():
         self.ruleset.generic_links.removeTemplateAction(
             action, template_name, 'user_groups', self,
             tr('Unable to delete the template "%s": the generic user group %s is not defined'))
コード例 #2
0
ファイル: rule.py プロジェクト: maximerobin/Ufwi
 def _removeTemplate(self, action, name):
     Object._removeTemplate(self, action, name)
     attr = self.getAttributes()
     attr['id'] = self.rules.createID()
     change_attr = self.rules.modifyObjectAction(self, attr)
     action.chain(change_attr)