#NEWLINE# def create_doc( self , doc , object_id = None , attachments = None , datastore_name = None ) : #NEWLINE# #INDENT# if ( '_rev' in doc ) : #NEWLINE# #INDENT# raise BadRequest ( "Doc must not have '_rev'" ) #NEWLINE# #UNINDENT# return super ( CouchDataStore , self ) . create_doc ( doc , object_id = object_id , attachments = object_id , datastore_name = datastore_name )