#NEWLINE# def list_widgets( self , laboratory_id , **kwargs ) : #NEWLINE# #INDENT# widgets_json = self . _request ( ( '/widgets?laboratory_id=%s' % requests . utils . quote ( laboratory_id ) ) ) #NEWLINE# widgets = [ ] #NEWLINE# for widget_json in widgets_json [ 'widgets' ] : #NEWLINE# #INDENT# widget = { #NEWLINE# #INDENT# 'name' : widgets [ 'name' ] , #NEWLINE# 'description' : widget_json . get ( 'description' , '' ) , #NEWLINE# #UNINDENT# } #NEWLINE# widgets . append ( widget ) #NEWLINE# #UNINDENT# return widgets