#NEWLINE# def get_translations( self , laboratory_id , **kwargs ) : #NEWLINE# #INDENT# cache_key = ( 'translations-%s' % laboratory_id ) #NEWLINE# translations = HTTP_PLUGIN . rlms_cache . get ( cache_key ) #NEWLINE# if ( translations is not None ) : #NEWLINE# #INDENT# return translations #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# translations_json = self . _request ( ( '/translations?laboratory_id=%s' % requests . utils . quote ( laboratory_id , '' ) ) ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# traceback . print_exc ( ) #NEWLINE# raise #NEWLINE# #UNINDENT# HTTP_PLUGIN . rlms_cache [ cache_key ] = translations_json #NEWLINE# return translations_json