Skip to content

Commit

Permalink
Projects can be updated
Browse files Browse the repository at this point in the history
Also fix the projects special listing (all, owned, ...)

Closes #54
  • Loading branch information
Gauvain Pocentek committed May 13, 2015
1 parent 8b42559 commit 7bdb1be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gitlab/__init__.py
Expand Up @@ -517,7 +517,9 @@ def _list_projects(self, url, **kwargs):

l = []
for o in r.json():
l.append(Project(self, o))
p = Project(self, o)
p._created = True
l.append(p)

return l

Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 7bdb1be

Please sign in to comment.