@@ -315,9 +315,9 @@ def Hook(self, id=None, **kwargs):
315315
316316 If id is None, returns a list of hooks.
317317
318- If id is an integer, test the matching hook.
318+ If id is an integer, tests the matching hook.
319319
320- If id is a dict, create a new object using attributes provided. The
320+ If id is a dict, creates a new object using attributes provided. The
321321 object is NOT saved on the server. Use the save() method on the object
322322 to write it on the server.
323323 """
@@ -328,42 +328,46 @@ def Project(self, id=None, **kwargs):
328328
329329 If id is None, returns a list of projects.
330330
331- If id is an integer, returns the matching project (or raise a
331+ If id is an integer, returns the matching project (or raises a
332332 GitlabGetError if not found)
333333
334- If id is a dict, create a new object using attributes provided. The
334+ If id is a dict, creates a new object using attributes provided. The
335335 object is NOT saved on the server. Use the save() method on the object
336336 to write it on the server.
337337 """
338338 return self ._getListOrObject (Project , id , ** kwargs )
339339
340340 def Group (self , id = None , ** kwargs ):
341- """Creates/gets/lists groups (s) known by the GitLab server.
341+ """Creates/gets/lists group (s) known by the GitLab server.
342342
343- If id is None, returns a list of projects .
343+ If id is None, returns a list of groups .
344344
345- If id is an integer, returns the matching project (or raise a
345+ If id is an integer, returns the matching group (or raises a
346346 GitlabGetError if not found)
347347
348- If id is a dict, create a new object using attributes provided. The
348+ If id is a dict, creates a new object using attributes provided. The
349349 object is NOT saved on the server. Use the save() method on the object
350350 to write it on the server.
351351 """
352352 return self ._getListOrObject (Group , id , ** kwargs )
353353
354354 def Issue (self , id = None , ** kwargs ):
355- """Lists issues(s) known by the GitLab server."""
355+ """Lists issues(s) known by the GitLab server.
356+
357+ Does not support creation or getting a single issue unlike other
358+ methods in this class yet.
359+ """
356360 return self ._getListOrObject (Issue , id , ** kwargs )
357361
358362 def User (self , id = None , ** kwargs ):
359363 """Creates/gets/lists users(s) known by the GitLab server.
360364
361- If id is None, returns a list of projects .
365+ If id is None, returns a list of users .
362366
363- If id is an integer, returns the matching project (or raise a
367+ If id is an integer, returns the matching user (or raises a
364368 GitlabGetError if not found)
365369
366- If id is a dict, create a new object using attributes provided. The
370+ If id is a dict, creates a new object using attributes provided. The
367371 object is NOT saved on the server. Use the save() method on the object
368372 to write it on the server.
369373 """
@@ -374,7 +378,7 @@ def Team(self, id=None, **kwargs):
374378
375379 If id is None, returns a list of teams.
376380
377- If id is an integer, returns the matching project (or raise a
381+ If id is an integer, returns the matching team (or raises a
378382 GitlabGetError if not found)
379383
380384 If id is a dict, create a new object using attributes provided. The
@@ -693,6 +697,16 @@ class ProjectKey(GitlabObject):
693697 requiredCreateAttrs = ['project_id' , 'title' , 'key' ]
694698
695699
700+ class ProjectEvent (GitlabObject ):
701+ _url = '/projects/%(project_id)s/events'
702+ canGet = False
703+ canDelete = False
704+ canUpdate = False
705+ canCreate = False
706+ requiredListAttrs = ['project_id' ]
707+ shortPrintAttr = 'target_title'
708+
709+
696710class ProjectHook (GitlabObject ):
697711 _url = '/projects/%(project_id)s/hooks'
698712 requiredListAttrs = ['project_id' ]
@@ -854,6 +868,11 @@ def Commit(self, id=None, **kwargs):
854868 project_id = self .id ,
855869 ** kwargs )
856870
871+ def Event (self , id = None , ** kwargs ):
872+ return self ._getListOrObject (ProjectEvent , id ,
873+ project_id = self .id ,
874+ ** kwargs )
875+
857876 def Hook (self , id = None , ** kwargs ):
858877 return self ._getListOrObject (ProjectHook , id ,
859878 project_id = self .id ,
0 commit comments