deckhand.control.views.document module

class deckhand.control.views.document.ViewBuilder[source]

Bases: deckhand.control.common.ViewBuilder

Model document API responses as a python dictionary.

There are 2 cases for rendering the response body below.

1. Treat the case where all documents in a bucket have been deleted as a special case. The response body must still include the revision_id and bucket_id. It is not meaningful to include other data about the deleted documents as technically they don’t exist. 2. Add all non-deleted documents to the response body.

list(documents)[source]