summaryrefslogtreecommitdiff
path: root/gitlab/__init__.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-08 22:05:37 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-08 22:05:37 +0100
commite8631c1d505690a04704a9c19ba4a2d8564c6ef4 (patch)
tree268262da88b7cb8ffcdfe2d54c0aeb941010a43f /gitlab/__init__.py
parent37912c1ccd395b2831be0b6f4155264a1ebcb1fe (diff)
downloadgitlab-e8631c1d505690a04704a9c19ba4a2d8564c6ef4.tar.gz
Create a manager for ProjectFork objects
Diffstat (limited to 'gitlab/__init__.py')
-rw-r--r--gitlab/__init__.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index 4de778a..02fb175 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -88,6 +88,7 @@ class Gitlab(object):
self.project_commits = ProjectCommitManager(self)
self.project_keys = ProjectKeyManager(self)
self.project_events = ProjectEventManager(self)
+ self.project_forks = ProjectForkManager(self)
self.project_hooks = ProjectHookManager(self)
self.project_issue_notes = ProjectIssueNoteManager(self)
self.project_issues = ProjectIssueManager(self)
@@ -451,13 +452,6 @@ class Gitlab(object):
DeprecationWarning)
return UserProject._get_list_or_object(self, id, **kwargs)
- def ProjectFork(self, id=None, **kwargs):
- """Fork a project for a user.
-
- id must be a dict.
- """
- return ProjectFork._get_list_or_object(self, id, **kwargs)
-
def _list_projects(self, url, **kwargs):
r = self._raw_get(url, **kwargs)
raise_error_from_response(r, GitlabListError)