summaryrefslogtreecommitdiff
path: root/gitlab/cli.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2017-06-11 13:41:14 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2017-06-11 13:44:05 +0200
commit61fba8431d0471128772429b9a8921d8092fa71b (patch)
tree4d4db2db1a9b6aae4c735bf46a9defe8501bebbd /gitlab/cli.py
parent197ffd70814ddf577655b3fdb7865f4416201353 (diff)
downloadgitlab-61fba8431d0471128772429b9a8921d8092fa71b.tar.gz
Add laziness to get()
The goal is to create empty objects (no API called) but give access to the managers. Using this users can reduce the number of API calls but still use the same API to access children objects. For example the following will only make one API call but will still get the result right: gl.projects.get(49, lazy=True).issues.get(2, lazy=True).notes.list() This removes the need for more complex managers attributes (e.g. gl.project_issue_notes)
Diffstat (limited to 'gitlab/cli.py')
0 files changed, 0 insertions, 0 deletions