Module Expr Str Assign NameStore Str ImportFrom alias Import alias ImportFrom alias alias alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Str Str body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str orelse Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Dict orelse Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Dict Expr Call NameLoad Lambda arguments args NameParam defaults Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Return TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return TupleLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad ExceptHandler type NameLoad name NameStore body If CompareEq SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Str body Raise Call NameLoad BinOpMod Str NameLoad orelse Raise decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body TryExcept body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad ExceptHandler type NameLoad name NameStore body If CompareEq SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Str body Raise Call NameLoad BinOpMod Str NameLoad orelse Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body If CompareIn Str NameLoad body Raise Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str orelse Raise Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If CompareIn Str NameLoad body Raise Call NameLoad Str Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareNotIn Str NameLoad body Raise Call NameLoad Str Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If UnaryOpNot Call NameLoad ListComp CompareIn Str NameLoad comprehension NameStore NameLoad body Raise Call NameLoad Str Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr keyword Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Return ListLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad If NameLoad body Assign NameStore ListComp BinOpMod Str Call NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad CompareIs AttributeLoad NameLoad attr NameLoad If NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore ListComp IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr keyword Num keyword Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr keyword Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd Call NameLoad NameLoad NameLoad CompareNotIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore IfExp CompareIs Call NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad TryExcept body If CompareIs Call NameLoad NameLoad NameLoad body Delete SubscriptDel NameLoad Index NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Num keyword Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign NameStore BoolOpOr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If UnaryOpNot NameLoad body TryExcept body TryExcept body Delete SubscriptDel NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Pass Assign SubscriptStore NameLoad Index NameLoad Call NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Call NameLoad NameLoad orelse Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Dict NameLoad If Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Delete SubscriptDel NameLoad Index Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list decorator_list
N/A N/A Standalone use utility methods for CouchDB N/A __author__ Thomas R. Lennan, Michael Meisinger uuid uuid4 N/A couchdb couchdb.http PreconditionFailed ResourceConflict ResourceNotFound ServerError N/A gevent pyon.datastore.couchdb.couch_common AbstractCouchDataStore pyon.datastore.couchdb.views get_couchdb_view_designs pyon.core.exception BadRequest Conflict NotFound pyon.util.containers get_safe DictDiffer ooi.logging log CouchDataStore N/A AbstractCouchDataStore N/A N/A 
    Datastore implementation utilizing CouchDB to persist documents.
    For API info, see: http://packages.python.org/CouchDB/client.html.
    A base datastore knows how to manage datastores, CRUD documents (dict) and access generic indexes.
     __init__ N/A N/A self datastore_name config scope profile N/A None None None None kwargs N/A N/A N/A N/A N/A super CouchDataStore self __init__ datastore_name datastore_name config config scope scope profile profile N/A N/A N/A N/A N/A self config get type None N/A N/A N/A self config N/A type couchdb N/A N/A N/A BadRequest N/A Datastore server config is not couchdb: %s N/A self config N/A N/A N/A self datastore_name N/A N/A self datastore_name N/A N/A N/A self datastore_name lower N/A N/A N/A BadRequest N/A Invalid CouchDB datastore name: '%s' N/A self datastore_name N/A N/A N/A self scope N/A N/A self scope N/A N/A N/A self scope lower N/A N/A N/A BadRequest N/A Invalid CouchDB scope name: '%s' N/A self scope N/A N/A N/A self username N/A self password N/A N/A connection_str N/A http://%s:%s@%s:%s N/A N/A self username N/A self password N/A self host N/A self port N/A log_connection_str N/A http://%s:%s@%s:%s N/A username password N/A self host N/A self port N/A N/A N/A log debug Using username:password authentication to connect to datastore N/A N/A connection_str N/A http://%s:%s N/A N/A self host N/A self port N/A log_connection_str connection_str N/A N/A N/A log info Connecting to CouchDB server: %s log_connection_str N/A N/A self server N/A N/A couchdb Server connection_str N/A N/A self _id_factory None N/A N/A self datastore_name N/A N/A N/A N/A N/A ds _ N/A N/A self _get_datastore N/A N/A N/A NotFound N/A N/A N/A N/A self create_datastore N/A N/A ds _ N/A N/A self _get_datastore N/A close N/A N/A self N/A N/A N/A 
        Close any connections required for this datastore.
         N/A N/A N/A log trace Closing connection to %s N/A self datastore_name N/A N/A hasattr N/A N/A N/A self server resource session conns N/A N/A conns N/A N/A N/A N/A self server resource session conns N/A N/A N/A N/A N/A self server resource session conns N/A N/A N/A conns N/A N/A N/A N/A N/A self server resource session connection_pool conns N/A N/A N/A N/A N/A N/A self server resource session connection_pool conns N/A N/A N/A map N/A N/A N/A x N/A N/A map N/A N/A N/A y N/A N/A N/A y close x N/A N/A conns values N/A _get_datastore N/A N/A self datastore_name N/A None N/A N/A 
        Returns the couch datastore instance and datastore name.
        This caches the datastore instance to avoid an explicit lookup to save on http request.
        The consequence is that if another process deletes the datastore in the meantime, we will fail later.
         N/A datastore_name N/A N/A self _get_datastore_name datastore_name N/A N/A datastore_name N/A self _datastore_cache N/A N/A N/A N/A N/A self _datastore_cache N/A datastore_name datastore_name N/A N/A N/A ds N/A N/A self server N/A datastore_name N/A N/A N/A self _datastore_cache N/A datastore_name ds N/A N/A ds datastore_name N/A N/A N/A ResourceNotFound N/A N/A N/A NotFound N/A Datastore '%s' does not exist datastore_name N/A N/A ValueError N/A N/A N/A BadRequest N/A Datastore name '%s' invalid datastore_name N/A N/A ServerError N/A se N/A N/A N/A BadRequest N/A Data store name %s invalid datastore_name N/A _create_datastore N/A N/A self datastore_name N/A N/A N/A N/A N/A N/A N/A N/A self server create datastore_name N/A N/A N/A PreconditionFailed N/A N/A N/A BadRequest N/A Datastore with name %s already exists datastore_name N/A N/A ValueError N/A N/A N/A BadRequest N/A Datastore name %s invalid datastore_name N/A N/A ServerError N/A se N/A N/A N/A N/A N/A N/A se message N/A 1 N/A 0 illegal_database_name N/A N/A N/A BadRequest N/A Data store name %s invalid datastore_name N/A N/A N/A delete_datastore N/A N/A self datastore_name N/A None N/A N/A N/A N/A N/A N/A N/A super CouchDataStore self delete_datastore datastore_name N/A N/A N/A ResourceNotFound N/A N/A N/A NotFound N/A Datastore %s does not exist datastore_name N/A N/A ValueError N/A N/A N/A BadRequest N/A Datastore name %s invalid datastore_name N/A N/A ServerError N/A se N/A N/A N/A N/A N/A N/A se message N/A 1 N/A 0 illegal_database_name N/A N/A N/A BadRequest N/A Data store name %s invalid datastore_name N/A N/A N/A list_datastores N/A N/A self N/A N/A N/A 
        List all datastores within this datastore server. This is
        equivalent to listing all databases hosted on a database server.
        Returns scoped names.
         N/A N/A list N/A self server N/A info_datastore N/A N/A self datastore_name N/A None N/A N/A 
        List information about a datastore.  Content may vary based
        on datastore type.
         N/A N/A ds datastore_name N/A N/A self _get_datastore datastore_name N/A info N/A N/A ds info N/A info N/A compact_datastore N/A N/A self datastore_name N/A None N/A N/A N/A ds datastore_name N/A N/A self _get_datastore datastore_name N/A N/A N/A ds compact N/A datastore_exists N/A N/A self datastore_name N/A None N/A N/A 
        Indicates whether named datastore currently exists.
         N/A datastore_name N/A N/A self _get_datastore_name datastore_name N/A N/A N/A N/A N/A self server N/A datastore_name N/A True N/A N/A N/A ResourceNotFound N/A N/A False N/A list_objects N/A N/A self datastore_name N/A None N/A N/A 
        List all object types existing in the datastore instance.
         N/A N/A ds datastore_name N/A N/A self _get_datastore datastore_name N/A N/A list ds N/A list_object_revisions N/A N/A self object_id datastore_name N/A None N/A N/A 
        Method for itemizing all the versions of a particular object
        known to the datastore.
         N/A N/A ds datastore_name N/A N/A self _get_datastore datastore_name N/A gen N/A N/A ds revisions object_id N/A res N/A N/A ent N/A _rev N/A ent gen N/A res N/A _save_doc N/A N/A self ds doc N/A N/A N/A N/A N/A N/A obj_id version N/A N/A ds save doc N/A N/A N/A ResourceConflict N/A N/A N/A _rev doc N/A N/A N/A Conflict N/A Object with id %s revision conflict N/A doc N/A _id N/A N/A N/A BadRequest N/A Object with id %s already exists N/A doc N/A _id N/A N/A obj_id version N/A _save_doc_mult N/A N/A self ds docs N/A N/A N/A res N/A N/A ds update docs N/A res N/A create_doc N/A N/A self doc object_id attachments datastore_name N/A None None None N/A N/A N/A _rev doc N/A N/A N/A BadRequest Doc must not have '_rev' N/A N/A N/A N/A super CouchDataStore self create_doc doc object_id object_id attachments attachments datastore_name datastore_name N/A create_attachment N/A N/A self doc attachment_name data content_type datastore_name N/A None N/A N/A 
        Assumes that the document already exists and creates attachment to it.
        @param doc can be either id or a document
         N/A N/A N/A isinstance attachment_name str N/A N/A N/A BadRequest attachment name is not string N/A N/A N/A N/A isinstance data str N/A N/A isinstance data file N/A N/A N/A BadRequest data to create attachment is not a str or file N/A N/A isinstance doc str N/A N/A doc N/A N/A self read_doc doc_id doc N/A N/A ds _ N/A N/A self _get_datastore datastore_name N/A N/A N/A ds put_attachment doc doc content data filename attachment_name content_type content_type N/A N/A N/A self _count create_attachment 1 N/A update_doc N/A N/A self doc datastore_name N/A None N/A N/A N/A _rev doc N/A N/A N/A BadRequest Doc must have '_rev' N/A N/A N/A N/A super CouchDataStore self update_doc doc datastore_name datastore_name N/A update_doc_mult N/A N/A self docs datastore_name N/A None N/A N/A N/A N/A all N/A N/A _rev doc N/A doc docs N/A N/A N/A BadRequest Docs must have '_rev' N/A N/A N/A N/A super CouchDataStore self update_doc_mult docs datastore_name datastore_name N/A update_attachment N/A N/A self doc attachment_name data content_type datastore_name N/A None N/A N/A N/A N/A self create_attachment doc doc attachment_name attachment_name data data content_type content_type datastore_name datastore_name N/A N/A N/A self _count update_attachment 1 N/A read_doc N/A N/A self doc_id rev_id datastore_name object_type N/A None None None N/A N/A "
        Fetch a raw doc instance.  If rev_id is specified, an attempt
        will be made to return that specific doc version.  Otherwise,
        the HEAD version is returned.
         N/A N/A ds datastore_name N/A N/A self _get_datastore datastore_name N/A N/A rev_id N/A N/A doc N/A N/A ds get doc_id N/A N/A doc None N/A N/A N/A NotFound N/A Object with id %s does not exist. doc_id N/A N/A doc N/A N/A ds get doc_id rev rev_id N/A N/A doc None N/A N/A N/A NotFound N/A Object with id %s does not exist. doc_id N/A N/A N/A self _count read 1 N/A doc N/A read_doc_mult N/A N/A self object_ids datastore_name strict N/A None True N/A N/A "
        Fetch a number of raw doc instances, HEAD rev.
         N/A N/A object_ids N/A N/A N/A N/A N/A ds datastore_name N/A N/A self _get_datastore datastore_name N/A rows N/A N/A ds view _all_docs keys object_ids include_docs True N/A strict N/A N/A notfound_list N/A N/A Object with id %s does not exist. N/A str N/A row key N/A row rows N/A N/A row doc None N/A notfound_list N/A N/A N/A NotFound N/A N/A join notfound_list N/A doc_list N/A N/A N/A N/A row doc None N/A N/A N/A row doc copy None N/A row rows N/A N/A N/A self _count read_mult_call 1 read_mult_obj N/A len doc_list N/A doc_list N/A read_attachment N/A N/A self doc attachment_name datastore_name N/A N/A N/A N/A N/A isinstance attachment_name str N/A N/A N/A BadRequest Attachment_name param is not str N/A N/A ds datastore_name N/A N/A self _get_datastore datastore_name N/A attachment N/A N/A ds get_attachment doc attachment_name N/A N/A attachment None N/A N/A N/A NotFound Attachment %s does not exist in document %s.%s. attachment_name datastore_name doc N/A attachment_content N/A N/A attachment read N/A N/A N/A isinstance attachment_content str N/A N/A N/A NotFound Attachment read is not a string N/A N/A N/A self _count read_attachment 1 N/A attachment_content N/A list_attachments N/A N/A self doc N/A N/A N/A 
        Returns the a list of attachments for the document, as a dict of dicts, key'ed by name with
        nested keys 'data' for the content and 'content-type'.
        @param doc  accepts either str (meaning an id) or dict (a full document).
         N/A N/A N/A isinstance doc dict N/A _attachments doc N/A N/A doc N/A N/A self read_doc doc_id N/A doc N/A _id N/A N/A N/A isinstance doc str N/A N/A doc N/A N/A self read_doc doc_id doc N/A attachment_list N/A N/A doc get _attachments None N/A attachment_list N/A delete_doc N/A N/A self doc datastore_name object_type N/A None None kwargs N/A N/A 
        Remove all versions of specified raw doc from the datastore.
        This method will check the '_rev' value to ensure that the doc
        provided is the most recent known doc version.  If not, a
        Conflict exception is thrown.
        If object id (str) is given instead of an object, deletes the
        object with the given id.
         N/A N/A ds datastore_name N/A N/A self _get_datastore datastore_name N/A doc_id N/A N/A N/A type doc str doc N/A doc N/A _id N/A N/A N/A log debug Deleting object %s/%s datastore_name doc_id N/A N/A N/A N/A N/A type doc str N/A N/A N/A ds N/A doc_id N/A N/A N/A N/A ds delete doc N/A N/A N/A ResourceNotFound N/A N/A N/A NotFound N/A Object with id %s does not exist. doc_id N/A N/A ResourceConflict N/A N/A N/A Conflict N/A Object with id %s revision conflict N/A doc N/A _id N/A delete_doc_mult N/A N/A self object_ids datastore_name object_type N/A None None N/A N/A obj_list N/A N/A self read_doc_mult object_ids datastore_name datastore_name N/A obj obj_list N/A N/A N/A obj N/A _deleted True N/A N/A N/A self update_doc_mult obj_list datastore_name datastore_name N/A N/A N/A self _count delete_mult_call 1 delete_mult_obj N/A len obj_list N/A delete_attachment N/A N/A self doc attachment_name datastore_name N/A N/A N/A 
        Deletes an attachment from a document.
         N/A N/A N/A isinstance attachment_name str N/A N/A N/A BadRequest attachment_name is not a string N/A N/A isinstance doc str N/A N/A doc N/A N/A self read_doc doc_id doc datastore_name datastore_name N/A N/A ds datastore_name N/A N/A self _get_datastore datastore_name N/A N/A N/A log debug Delete attachment %s of document %s attachment_name N/A doc N/A _id N/A N/A N/A ds delete_attachment doc attachment_name N/A N/A N/A self _count delete_attachment 1 N/A compact_views N/A N/A self design datastore_name N/A None N/A N/A N/A ds datastore_name N/A N/A self _get_datastore datastore_name N/A N/A N/A ds compact design N/A define_profile_views N/A N/A self profile datastore_name keepviews N/A None None False N/A N/A profile N/A profile N/A self profile N/A ds_views N/A get_couchdb_view_designs profile N/A N/A N/A self _define_profile_views ds_views datastore_name datastore_name keepviews keepviews N/A define_viewset N/A N/A self design_name design_doc datastore_name keepviews N/A None False N/A N/A 
        Create or update a design document (i.e. a set of views).
        If design exists, only updates if view definitions are different to prevent rebuild of indexes.
         N/A N/A ds datastore_name N/A N/A self _get_datastore datastore_name N/A doc_name N/A N/A self _get_design_name design_name N/A N/A N/A N/A ds N/A doc_name N/A dict views design_doc N/A N/A N/A Exception N/A N/A old_design N/A ds N/A doc_name N/A N/A keepviews N/A N/A N/A N/A N/A N/A N/A ds N/A doc_name N/A N/A N/A ResourceNotFound N/A N/A N/A N/A ds N/A doc_name N/A dict views design_doc N/A N/A N/A Exception N/A ex N/A N/A N/A N/A log warn Error defining datastore %s view %s (concurrent create?): %s datastore_name doc_name N/A str ex N/A N/A ddiff N/A DictDiffer N/A N/A old_design get views N/A design_doc N/A N/A N/A ddiff changed N/A N/A N/A old_design N/A views design_doc N/A N/A N/A ds save old_design N/A refresh_views N/A N/A self datastore_name profile N/A None N/A N/A 
        Triggers a refresh of all views (all designs) for this datastore's profile
         N/A profile N/A profile N/A self profile N/A ds_views N/A get_couchdb_view_designs profile N/A N/A design_name design_doc N/A N/A ds_views iteritems N/A N/A N/A N/A self refresh_viewset design_name datastore_name datastore_name N/A refresh_viewset N/A N/A self design datastore_name N/A None N/A N/A 
        Triggers the rebuild of a design document (set of views).
         N/A N/A ds datastore_name N/A N/A self _get_datastore datastore_name N/A doc_id N/A N/A self _get_design_name design N/A N/A N/A design_doc N/A ds N/A doc_id N/A view_name N/A N/A N/A N/A design_doc N/A views keys N/A 0 N/A N/A N/A ds view N/A N/A self _get_view_name design view_name N/A N/A N/A Exception N/A N/A N/A N/A log exception Problem with design %s/%s datastore_name doc_id N/A delete_views N/A N/A self design datastore_name N/A None N/A N/A N/A ds datastore_name N/A N/A self _get_datastore datastore_name N/A N/A N/A N/A ds N/A N/A N/A self _get_design_name design N/A N/A N/A ResourceNotFound N/A N/A N/A N/A