Skip to content

Commit

Permalink
minor syntax change: canGetList => canList
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed May 18, 2013
1 parent 5dda6e6 commit 49eab91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gitlab.py
Expand Up @@ -386,7 +386,7 @@ class GitlabObject(object):
_returnClass = None
_constructorTypes = None
canGet = True
canGetList = True
canList = True
canCreate = True
canUpdate = True
canDelete = True
Expand All @@ -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:
Expand All @@ -407,7 +407,7 @@ def list(cls, gl, **kwargs):

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)
Expand Down Expand Up @@ -518,7 +518,7 @@ class CurrentUserKey(GitlabObject):

class CurrentUser(GitlabObject):
_url = '/user'
canGetList = False
canList = False
canCreate = False
canUpdate = False
canDelete = False
Expand Down

0 comments on commit 49eab91

Please sign in to comment.