Skip to content

Commit

Permalink
feat(user): add default_group information
Browse files Browse the repository at this point in the history
  • Loading branch information
deveaud-m committed Aug 4, 2023
1 parent 96d3d7d commit b880bd5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fossology/obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ def __init__(
accessLevel: int = None,
rootFolderId: int = None,
emailNotification: str = None,
default_group: str = None,
agents: dict = None,
**kwargs,
):
Expand All @@ -278,14 +279,16 @@ def __init__(
self.accessLevel = accessLevel
self.rootFolderId = rootFolderId
self.emailNotification = emailNotification
self.default_group = default_group
self.agents = agents
self.additional_info = kwargs

def __str__(self):
return (
f"User {self.description} ({self.id}), {self.email}, "
f"access level {self.accessLevel} "
f"and root folder {self.rootFolderId}"
f"access level {self.accessLevel}, "
f"root folder {self.rootFolderId}, "
f"default group {self.default_group}"
)

@classmethod
Expand Down

0 comments on commit b880bd5

Please sign in to comment.