def getRoles(self):
     response, content = self._req('GET', '/admin/role')
     xml = minidom.parseString(content)
     return [
         youtrack.Role(e, self) for e in xml.documentElement.childNodes
         if e.nodeType == Node.ELEMENT_NODE
     ]
Esempio n. 2
0
 def getRole(self, name):
     return youtrack.Role(self._get("/admin/role/" + urlquote(name)), self)