diff options
| author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-05-13 17:29:12 +0200 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-05-13 17:29:12 +0200 |
| commit | 7bdb1be12e5038085c2cfb416a50d8015bf3db58 (patch) | |
| tree | 2b0c78b342b8401d71f0c2b3aeb01e0e5a77dc60 /gitlab | |
| parent | 8b425599bcda4f2c1bf893f78e8773653afacff7 (diff) | |
| download | gitlab-7bdb1be12e5038085c2cfb416a50d8015bf3db58.tar.gz | |
Projects can be updated
Also fix the projects special listing (all, owned, ...)
Closes #54
Diffstat (limited to 'gitlab')
| -rw-r--r-- | gitlab/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index 09bb07a..c48f079 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -517,7 +517,9 @@ class Gitlab(object): l = [] for o in r.json(): - l.append(Project(self, o)) + p = Project(self, o) + p._created = True + l.append(p) return l @@ -1154,7 +1156,6 @@ class UserProject(GitlabObject): class Project(GitlabObject): _url = '/projects' _constructorTypes = {'owner': 'User', 'namespace': 'Group'} - canUpdate = False requiredCreateAttrs = ['name'] optionalCreateAttrs = ['default_branch', 'issues_enabled', 'wall_enabled', 'merge_requests_enabled', 'wiki_enabled', |
