#NEWLINE# def get_laboratories( self , **kwargs ) : #NEWLINE# #INDENT# labs = HTTP_PLUGIN . rlms_cache . get ( 'labs' ) #NEWLINE# if ( labs is not None ) : #NEWLINE# #INDENT# return labs #NEWLINE# #UNINDENT# labs = self . _request ( '/labs' ) [ 'labs' ] #NEWLINE# laboratories = [ ] #NEWLINE# for lab in labs : #NEWLINE# #INDENT# laboratory = Laboratory ( name = lab [ 'name' ] , laboratory_id = lab [ 'laboratory_id' ] , description = lab . get ( 'description' ) , autoload = lab . get ( 'autoload' ) ) #NEWLINE# laboratories . append ( laboratory ) #NEWLINE# #UNINDENT# HTTP_PLUGIN . rlms_cache [ 'labs' ] = laboratories #NEWLINE# return laboratories