#NEWLINE# @ with_session #NEWLINE# def get_experiment( self , experiment_name , category_name ) : #NEWLINE# #INDENT# result = _current . session . query ( model . DbExperiment ) . filter ( ( model . DbExperimentCategory . name == category_name ) ) . filter_by ( name = experiment_name ) . first ( ) #NEWLINE# if ( result is not None ) : #NEWLINE# #INDENT# return result . to_business ( ) #NEWLINE# #UNINDENT# return None