Skip to content

Commit

Permalink
add a pagination example
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed Feb 16, 2013
1 parent 0149020 commit 74ec951
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gitlab.py
Expand Up @@ -603,3 +603,7 @@ def Tag(self, id=None, **kwargs):
# and close them all
issue.closed = 1
issue.save()

# get the first 10 groups (pagination)
for g in gl.Group(page=1, per_page=10):
print g

0 comments on commit 74ec951

Please sign in to comment.