Commit bd8b1d5f authored by Barry Warsaw's avatar Barry Warsaw

* Add NEWS and a missing _all__ key.

* Wrap paragraph.
parent a5b65681
Pipeline #228564 passed with stage
......@@ -91,6 +91,8 @@ REST
server owners as `IUser`s. (Closes #135)
* By POSTing to a user resource with an existing unlinked address, you can
link the address to the user. Given by Abhilash Raj.
* Fix pagination values `start` and `total_size` in the REST API. Given by
Aurélien Bompard. (Closes: #154)
Other
-----
......
......@@ -20,6 +20,7 @@
__all__ = [
'BadRequest',
'ChildError',
'CollectionMixin',
'GetterSetter',
'NotFound',
'bad_request',
......@@ -148,10 +149,11 @@ class CollectionMixin:
def _paginate(self, request, collection):
"""Method to paginate through collection result lists.
Use this to return only a slice of a collection, specified in the request
itself. The request should use query parameters `count` and `page` to
specify the slice they want. The slice will start at index
``(page - 1) * count`` and end (exclusive) at ``(page * count)``.
Use this to return only a slice of a collection, specified in
the request itself. The request should use query parameters
`count` and `page` to specify the slice they want. The slice
will start at index ``(page - 1) * count`` and end (exclusive)
at ``(page * count)``.
"""
# Allow falcon's HTTPBadRequest exceptions to percolate up. They'll
# get turned into HTTP 400 errors.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment