#NEWLINE# @ gen . coroutine #NEWLINE# def view( self , design_doc_name , view_name , **kwargs ) : #NEWLINE# #INDENT# 'Query a pre-defined view in the specified design doc.\n        The following query parameters can be specified as keyword arguments.\n\n        Limit query results to those with the specified key or list of keys:\n          key=<key-value>\n          keys=<list of keys>\n\n        Limit query results to those following the specified startkey:\n          startkey=<key-value>\n\n        First document id to include in the output:\n          startkey_docid=<document id>\n\n        Limit query results to those previous to the specified endkey:\n          endkey=<key-value>\n\n        Last document id to include in the output:\n          endkey_docid=<document id>\n\n        Limit the number of documents in the output:\n          limit=<number of docs>\n\n        Prevent CouchDB from refreshing a stale view:\n          stale="ok"\n          stale="update_after"\n\n        Reverse the output:\n          descending=True\n          descending=False  (default value)\n\n        Note that the descending option is applied before any key filtering, so\n        you may need to swap the values of the startkey and endkey options to\n        get the expected results.\n\n        Skip the specified number of docs in the query results:\n          skip=<number>  (default value is 0)\n\n        The group option controls whether the reduce function reduces to a set\n        of distinct keys or to a single result row:\n          group=True\n          group=False  (default value)\n\n          group_level=<number>\n\n        Use the reduce function of the view:\n          reduce=True  (default value)\n          reduce=False\n\n        Note that default value of reduce is True, only if a reduce function is\n        defined for the view.\n\n        Automatically fetch and include the document which emitted each view\n        entry:\n          include_docs=True\n          include_docs=False  (default value)\n\n        Determine whether the endkey is included in the result:\n          inclusive_end=True  (default value)\n          inclusive_end=False\n        ' #NEWLINE# url = '{0}/_design/{1}/_view/{2}' . format ( view_name . db_name , design_doc_name , view_name ) #NEWLINE# r = ( yield self . _view ( url , ** kwargs ) ) #NEWLINE# raise gen . Return ( r )