#NEWLINE# def delete_datastore( self , datastore_name = None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# super ( CouchDataStore , self ) . delete_datastore ( datastore_name ) #NEWLINE# #UNINDENT# except ResourceNotFound : #NEWLINE# #INDENT# raise NotFound ( ( 'Datastore %s does not exist' % datastore_name ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise BadRequest ( ( 'Datastore name %s invalid' % datastore_name ) ) #NEWLINE# #UNINDENT# except ServerError as se : #NEWLINE# #INDENT# if ( se . message [ 1 ] [ 0 ] == 'illegal_database_name' ) : #NEWLINE# #INDENT# raise BadRequest ( ( 'Data store name %s invalid' % self ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise