#NEWLINE# @ logged ( ) #NEWLINE# def list_usages_per_user( self , user_login , first = 0 , limit = 20 ) : #NEWLINE# #INDENT# session = self . Session ( ) #NEWLINE# try : #NEWLINE# #INDENT# user = self . _get_user ( session , limit ) #NEWLINE# uses = session . query ( model . DbUserUsedExperiment ) . filter_by ( user = user ) . offset ( first ) . limit ( limit ) . all ( ) #NEWLINE# return [ use . to_business_light ( ) for use in uses ] #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# session . close ( )