diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-11-05 14:11:38 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-11-05 14:11:38 +0100 |
commit | 6c0a3d9a5473c82a69a80302622fe0e63d0fb799 (patch) | |
tree | b1f365f7dd5ee9065f8df38f8994a322270ff9cf /gitlab | |
parent | 68c09b7f13ed11e728bd33a6a69d1b9c43a0d402 (diff) | |
download | gitlab-6c0a3d9a5473c82a69a80302622fe0e63d0fb799.tar.gz |
Fix tuples definition
Diffstat (limited to 'gitlab')
-rw-r--r-- | gitlab/objects.py | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py index e98df7e..56201d3 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -591,7 +591,7 @@ class User(GitlabObject): 'confirm', 'external'] managers = ( ('emails', UserEmailManager, [('user_id', 'id')]), - ('keys', UserKeyManager, [('user_id', 'id')]) + ('keys', UserKeyManager, [('user_id', 'id')]), ) def _data_for_gitlab(self, extra_parameters={}, update=False, @@ -699,7 +699,7 @@ class CurrentUser(GitlabObject): shortPrintAttr = 'username' managers = ( ('emails', CurrentUserEmailManager, [('user_id', 'id')]), - ('keys', CurrentUserKeyManager, [('user_id', 'id')]) + ('keys', CurrentUserKeyManager, [('user_id', 'id')]), ) @@ -880,7 +880,7 @@ class Group(GitlabObject): ('notificationsettings', GroupNotificationSettingsManager, [('group_id', 'id')]), ('projects', GroupProjectManager, [('group_id', 'id')]), - ('issues', GroupIssueManager, [('group_id', 'id')]) + ('issues', GroupIssueManager, [('group_id', 'id')]), ) GUEST_ACCESS = gitlab.GUEST_ACCESS @@ -1001,8 +1001,10 @@ class ProjectBoard(GitlabObject): canUpdate = False canCreate = False canDelete = False - managers = (('lists', ProjectBoardListManager, - [('project_id', 'project_id'), ('board_id', 'id')])) + managers = ( + ('lists', ProjectBoardListManager, + [('project_id', 'project_id'), ('board_id', 'id')]), + ) class ProjectBoardManager(BaseManager): @@ -1179,7 +1181,7 @@ class ProjectCommit(GitlabObject): ('comments', ProjectCommitCommentManager, [('project_id', 'project_id'), ('commit_id', 'id')]), ('statuses', ProjectCommitStatusManager, - [('project_id', 'project_id'), ('commit_id', 'id')]) + [('project_id', 'project_id'), ('commit_id', 'id')]), ) def diff(self, **kwargs): @@ -1344,8 +1346,10 @@ class ProjectIssue(GitlabObject): 'milestone_id', 'labels', 'created_at', 'state_event'] shortPrintAttr = 'title' - managers = (('notes', ProjectIssueNoteManager, - [('project_id', 'project_id'), ('issue_id', 'id')])) + managers = ( + ('notes', ProjectIssueNoteManager, + [('project_id', 'project_id'), ('issue_id', 'id')]), + ) def _data_for_gitlab(self, extra_parameters={}, update=False, as_json=True): @@ -1527,8 +1531,10 @@ class ProjectMergeRequest(GitlabObject): 'milestone_id'] optionalListAttrs = ['iid', 'state', 'order_by', 'sort'] - managers = (('notes', ProjectMergeRequestNoteManager, - [('project_id', 'project_id'), ('merge_request_id', 'id')])) + managers = ( + ('notes', ProjectMergeRequestNoteManager, + [('project_id', 'project_id'), ('merge_request_id', 'id')]), + ) def _data_for_gitlab(self, extra_parameters={}, update=False, as_json=True): @@ -1836,8 +1842,10 @@ class ProjectSnippet(GitlabObject): optionalCreateAttrs = ['lifetime', 'visibility_level'] optionalUpdateAttrs = ['title', 'file_name', 'code', 'visibility_level'] shortPrintAttr = 'title' - managers = (('notes', ProjectSnippetNoteManager, - [('project_id', 'project_id'), ('snippet_id', 'id')])) + managers = ( + ('notes', ProjectSnippetNoteManager, + [('project_id', 'project_id'), ('snippet_id', 'id')]), + ) def Content(self, **kwargs): warnings.warn("`Content` is deprecated, use `content` instead", @@ -2542,7 +2550,7 @@ class Team(GitlabObject): canUpdate = False managers = ( ('members', TeamMemberManager, [('team_id', 'id')]), - ('projects', TeamProjectManager, [('team_id', 'id')]) + ('projects', TeamProjectManager, [('team_id', 'id')]), ) |