diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-10-21 07:59:26 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-10-21 07:59:26 +0200 |
commit | 8c9ad299a20dcd23f9da499ad5ed785814c7b32e (patch) | |
tree | a69bec8dcae9fe9bd1afaa3568108957d01c180f /gitlab/v4/objects.py | |
parent | 32ea62af967e5ee0304d8e16d7000bb052a506e4 (diff) | |
download | gitlab-8c9ad299a20dcd23f9da499ad5ed785814c7b32e.tar.gz |
Change ProjectUser and GroupProject base class
python-gitlab shouldn't try to provide features that are not existing in
the Gitlab API: GroupProject and ProjectUser objects should not provide
unsupported API methods (no get, no create, no update).
This Closes #346 by making explicit that we don't support these
non-existant methods.
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r-- | gitlab/v4/objects.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index bc96a24..0fe2ea5 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -1601,7 +1601,7 @@ class ProjectTriggerManager(CRUDMixin, RESTManager): _update_attrs = (('description', ), tuple()) -class ProjectUser(User): +class ProjectUser(RESTObject): pass @@ -2244,7 +2244,7 @@ class ProjectManager(CRUDMixin, RESTManager): 'with_issues_enabled', 'with_merge_requests_enabled') -class GroupProject(Project): +class GroupProject(RESTObject): pass |