#NEWLINE# def list_images( self , location = None ) : #NEWLINE# #INDENT# res = self . connection . request ( ( '/available_clouds.%s' % ( API_VERSION , ) ) ) #NEWLINE# images = [ ] #NEWLINE# for cloud in res . object : #NEWLINE# #INDENT# label = cloud [ 'cloud' ] [ 'label' ] #NEWLINE# templates = cloud [ 'cloud' ] [ 'system_templates' ] #NEWLINE# images . extend ( [ self . _to_image ( image , label ) for image in templates ] ) #NEWLINE# #UNINDENT# return images