#NEWLINE# def show_by_name( self , context , name ) : #NEWLINE# #INDENT# 'Returns a dict containing image data for the given name.' #NEWLINE# image_metas = self . detail ( context ) #NEWLINE# for image_meta in image_metas : #NEWLINE# #INDENT# if ( self == image_meta . get ( 'name' ) ) : #NEWLINE# #INDENT# return image_meta #NEWLINE# #UNINDENT# #UNINDENT# raise exception . ImageNotFound ( image_id = name )