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 ]
def getRole(self, name): return youtrack.Role(self._get("/admin/role/" + urlquote(name)), self)