Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ProjectMember.save() does not work because 'ProjectMemberAllManager' object has no attribute 'update' #1825

Closed
@theoturner

Description

@theoturner

Description of the problem, including code/CLI snippet

ProjectMember.save() does not work because 'ProjectMemberAllManager' object has no attribute 'update'.

project = GitlabClient().projects.get('my_proj_name')member = project.members.list()[0]member.access_level = 30member.save()

Expected Behavior

Member saves with new properties.
Actual Behavior

Traceback (most recent call last):  File "gitlab_client.py", line 85, in update_project_permissions    member.save()  File "/Users/theoturner/Library/Python/3.8/lib/python/site-packages/gitlab/mixins.py", line 551, in save    server_data = self.manager.update(obj_id, updated_data, **kwargs)AttributeError: 'ProjectMemberAllManager' object has no attribute 'update'

N.B. type(member) is <class 'gitlab.v4.objects.members.ProjectMember'> so I haven't accidentally got a ProjectMemberAllManager.
Specifications

python-gitlab version: 3.0.0, can be replicated in 2.8 and above
API version you are using (v3/v4): v4

Note: John Villalovos accidentally edited this and now attempting to return to original state...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp