Skip to content
Snippets Groups Projects

F doc info class

Merged Florian Spreckelsen requested to merge f-doc-info-class into main
All threads resolved!
1 file
+ 11
0
Compare changes
  • Side-by-side
  • Inline
+ 11
0
@@ -5019,6 +5019,17 @@ class DropOffBox(list):
class UserInfo():
"""User information from a server response.
Attributes
----------
name : str
Username
realm : str
Realm in which this user lives, e.g., CaosDB or LDAP.
roles : list[str]
List of roles assigned to this user.
"""
def __init__(self, xml: etree._Element):
self.roles = [role.text for role in xml.findall("Roles/Role")]
Loading