Skip to content

docs for gl.projects.owned() wrong #579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yamagoya opened this issue Sep 4, 2018 · 1 comment
Closed

docs for gl.projects.owned() wrong #579

yamagoya opened this issue Sep 4, 2018 · 1 comment

Comments

@yamagoya
Copy link

yamagoya commented Sep 4, 2018

The documentation at
https://python-gitlab.readthedocs.io/en/stable/gl_objects/projects.html
give example code:

# List owned projects
projects = gl.projects.owned()

but using that construct produces an AttributeError.

import gitlab
token = os.environ['TOKEN']
gl = gitlab.Gitlab('http://gitlab.com', private_token=token)

  # This works but is not documented...
projects = gl.projects.list(owned=True)

  # Documentation says to use this but it fails with
  #   AttributeError: 'ProjectManager' object has no attribute 'owned' 
projects = gl.projects.owned()
  • python-gitlab version: 1.6.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): gitlab.com
@gpocentek
Copy link
Contributor

Thank you for the bug report, I've updated the documentation.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants