summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-08-11 19:46:34 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2016-08-11 19:48:53 +0200
commit2ced9d0717ee84169f9b1f190fb6694e1134572d (patch)
tree3b16cf6cf9bd11b1c205eeee7037deb5a5bb128a /gitlab/objects.py
parent23b2a3072238546da2a2f8e48ce09db85a59feef (diff)
downloadgitlab-2ced9d0717ee84169f9b1f190fb6694e1134572d.tar.gz
Move the constants at the gitlab root level
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index d537d6a..715c58e 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -795,15 +795,15 @@ class Group(GitlabObject):
('projects', GroupProjectManager, [('group_id', 'id')]),
('issues', GroupIssueManager, [('group_id', 'id')])]
- GUEST_ACCESS = 10
- REPORTER_ACCESS = 20
- DEVELOPER_ACCESS = 30
- MASTER_ACCESS = 40
- OWNER_ACCESS = 50
+ GUEST_ACCESS = gitlab.GUEST_ACCESS
+ REPORTER_ACCESS = gitlab.REPORTER_ACCESS
+ DEVELOPER_ACCESS = gitlab.DEVELOPER_ACCESS
+ MASTER_ACCESS = gitlab.MASTER_ACCESS
+ OWNER_ACCESS = gitlab.OWNER_ACCESS
- VISIBILITY_PRIVATE = 0
- VISIBILITY_INTERNAL = 10
- VISIBILITY_PUBLIC = 20
+ VISIBILITY_PRIVATE = gitlab.VISIBILITY_PRIVATE
+ VISIBILITY_INTERNAL = gitlab.VISIBILITY_INTERNAL
+ VISIBILITY_PUBLIC = gitlab.VISIBILITY_PUBLIC
def Member(self, id=None, **kwargs):
warnings.warn("`Member` is deprecated, use `members` instead",
@@ -1787,9 +1787,9 @@ class Project(GitlabObject):
('variables', ProjectVariableManager, [('project_id', 'id')]),
]
- VISIBILITY_PRIVATE = 0
- VISIBILITY_INTERNAL = 10
- VISIBILITY_PUBLIC = 20
+ VISIBILITY_PRIVATE = gitlab.VISIBILITY_PRIVATE
+ VISIBILITY_INTERNAL = gitlab.VISIBILITY_INTERNAL
+ VISIBILITY_PUBLIC = gitlab.VISIBILITY_PUBLIC
def Branch(self, id=None, **kwargs):
warnings.warn("`Branch` is deprecated, use `branches` instead",