Skip to content

Commit

Permalink
Fix comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mart Sõmermaa committed Nov 19, 2013
1 parent 01ade72 commit 6705928
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions gitlab.py
Expand Up @@ -315,9 +315,9 @@ def Hook(self, id=None, **kwargs):
If id is None, returns a list of hooks.
If id is an integer, test the matching hook.
If id is an integer, tests the matching hook.
If id is a dict, create a new object using attributes provided. The
If id is a dict, creates a new object using attributes provided. The
object is NOT saved on the server. Use the save() method on the object
to write it on the server.
"""
Expand All @@ -328,42 +328,46 @@ def Project(self, id=None, **kwargs):
If id is None, returns a list of projects.
If id is an integer, returns the matching project (or raise a
If id is an integer, returns the matching project (or raises a
GitlabGetError if not found)
If id is a dict, create a new object using attributes provided. The
If id is a dict, creates a new object using attributes provided. The
object is NOT saved on the server. Use the save() method on the object
to write it on the server.
"""
return self._getListOrObject(Project, id, **kwargs)

def Group(self, id=None, **kwargs):
"""Creates/gets/lists groups(s) known by the GitLab server.
"""Creates/gets/lists group(s) known by the GitLab server.
If id is None, returns a list of projects.
If id is None, returns a list of groups.
If id is an integer, returns the matching project (or raise a
If id is an integer, returns the matching group (or raises a
GitlabGetError if not found)
If id is a dict, create a new object using attributes provided. The
If id is a dict, creates a new object using attributes provided. The
object is NOT saved on the server. Use the save() method on the object
to write it on the server.
"""
return self._getListOrObject(Group, id, **kwargs)

def Issue(self, id=None, **kwargs):
"""Lists issues(s) known by the GitLab server."""
"""Lists issues(s) known by the GitLab server.
Does not support creation or getting a single issue unlike other
methods in this class yet.
"""
return self._getListOrObject(Issue, id, **kwargs)

def User(self, id=None, **kwargs):
"""Creates/gets/lists users(s) known by the GitLab server.
If id is None, returns a list of projects.
If id is None, returns a list of users.
If id is an integer, returns the matching project (or raise a
If id is an integer, returns the matching user (or raises a
GitlabGetError if not found)
If id is a dict, create a new object using attributes provided. The
If id is a dict, creates a new object using attributes provided. The
object is NOT saved on the server. Use the save() method on the object
to write it on the server.
"""
Expand All @@ -374,7 +378,7 @@ def Team(self, id=None, **kwargs):
If id is None, returns a list of teams.
If id is an integer, returns the matching project (or raise a
If id is an integer, returns the matching team (or raises a
GitlabGetError if not found)
If id is a dict, create a new object using attributes provided. The
Expand Down

0 comments on commit 6705928

Please sign in to comment.