UserProject missing attributes/functions compared to Project #2748
-
Description of the problem, including code/CLI snippetIt is unintuitive for me that I am unable to access Maybe this is by design. If so, please help me understand why. Expected Behaviorimport gitlab
gl = gitlab.Gitlab(...)
user = gl.users.get(123)
user_project = user.projects.list()[0]
print(user_project.id)
print(user_project.pipelineschedules.list(scope="active")) Actual Behavior
Specifications
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You might try: https://python-gitlab.readthedocs.io/en/main/api-usage.html#lazy-objects
|
Beta Was this translation helpful? Give feedback.
-
Thanks for converting this into a discussion, I forget that Github has this feature. And also thanks for letting me know about lazy, I'll make use of that for now. In terms of Gitlab itself, do they have a distinction/nuance between a project in a user namespace vs non-user namespace? |
Beta Was this translation helpful? Give feedback.
You might try: https://python-gitlab.readthedocs.io/en/main/api-usage.html#lazy-objects