address PR comments

This commit is contained in:
Jimmy Zelinskie 2016-08-09 15:11:35 -04:00
parent 16b451437f
commit 9f743fd6cd
4 changed files with 19 additions and 16 deletions

View file

@ -33,6 +33,9 @@ _MAX_RESULTS_PER_PAGE = 50
def paginate(limit_kwarg_name='limit', offset_kwarg_name='offset',
callback_kwarg_name='pagination_callback'):
"""
Decorates a handler adding a parsed pagination token and a callback to encode a response token.
"""
def wrapper(func):
@wraps(func)
def wrapped(*args, **kwargs):