8000 Projects can be updated · python-gitlab/python-gitlab@7bdb1be · GitHub
[go: up one dir, main page]

Skip to content

Commit 7bdb1be

Browse files
author
Gauvain Pocentek
committed
Projects can be updated
Also fix the projects special listing (all, owned, ...) Closes #54
1 parent 8b42559 commit 7bdb1be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gitlab/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,9 @@ def _list_projects(self, url, **kwargs):
517517

518518
l = []
519519
for o in r.json():
520-
l.append(Project(self, o))
520+
p = Project(self, o)
521+
p._created = True
522+
l.append(p)
521523

522524
return l
523525

@@ -1154,7 +1156,6 @@ class UserProject(GitlabObject):
11541156
class Project(GitlabObject):
11551157
_url = '/projects'
11561158
_constructorTypes = {'owner': 'User', 'namespace': 'Group'}
1157-
canUpdate = False
11581159
requiredCreateAttrs = ['name']
11591160
optionalCreateAttrs = ['default_branch', 'issues_enabled', 'wall_enabled',
11601161
'merge_requests_enabled', 'wiki_enabled',

0 commit comments

Comments
 (0)
0