summaryrefslogtreecommitdiff
path: root/gitlab.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2013-05-18 20:35:29 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2013-05-18 20:35:29 +0200
commit49eab9194dfa1bd264cfb3e19c762c57b2094a01 (patch)
treeaf15edda79f6e3339c816c7435830a3166354a23 /gitlab.py
parent5dda6e6539a083f9f341104f37b5e2f4ebb918b3 (diff)
downloadgitlab-49eab9194dfa1bd264cfb3e19c762c57b2094a01.tar.gz
minor syntax change: canGetList => canList
Diffstat (limited to 'gitlab.py')
-rw-r--r--gitlab.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gitlab.py b/gitlab.py
index 86ed68d..ae9245c 100644
--- a/gitlab.py
+++ b/gitlab.py
@@ -386,7 +386,7 @@ class GitlabObject(object):
_returnClass = None
_constructorTypes = None
canGet = True
- canGetList = True
+ canList = True
canCreate = True
canUpdate = True
canDelete = True
@@ -397,7 +397,7 @@ class GitlabObject(object):
@classmethod
def list(cls, gl, **kwargs):
- if not cls.canGetList:
+ if not cls.canList:
raise NotImplementedError
if not cls._url:
@@ -407,7 +407,7 @@ class GitlabObject(object):
def _getListOrObject(self, cls, id, **kwargs):
if id is None:
- if not cls.canGetList:
+ if not cls.canList:
raise GitlabGetError
return cls.list(self.gitlab, **kwargs)
@@ -518,7 +518,7 @@ class CurrentUserKey(GitlabObject):
class CurrentUser(GitlabObject):
_url = '/user'
- canGetList = False
+ canList = False
canCreate = False
canUpdate = False
canDelete = False