#NEWLINE# @ logged ( ) #NEWLINE# def list_clients( self ) : #NEWLINE# #INDENT# 'Lists the ExperimentClients ' #NEWLINE# session = self . Session ( ) #NEWLINE# try : #NEWLINE# #INDENT# clients = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for experiment in session . query ( model . DbExperiment ) . options ( joinedload ( 'category' ) , joinedload ( 'client_parameters' ) ) . all ( ) : #NEWLINE# #INDENT# exp = experiment . to_business ( ) #NEWLINE# clients [ ( exp . name , exp . category . name ) ] = exp . client #NEWLINE# #UNINDENT# return clients #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# session . close ( )