Exemple #1
0
 def createGroup(self, attr):
     group = NetworkGroup(self, attr)
     domain = group.update_domain
     parent = group.parent
     action = Action(
         ActionHandler(Update(domain, "create", group.id), parent._create, group),
         ActionHandler(Update(domain, "delete", group.id), parent._delete, group))
     self._updateObjects(action, group.getReferents())
     return self.ruleset.addAction(action)
Exemple #2
0
 def importXMLChildren(self, root, context, action):
     Resource.importXMLChildren(self, root, context, action)
     for node in root.findall(NetworkGroup.XML_TAG):
         NetworkGroup.importXML(self, node, context, action)