#NEWLINE# def exists( self , filename ) : #NEWLINE# #INDENT# extra = 'original_format' #NEWLINE# setID = self . root_id #NEWLINE# rsp = self . handler . flickr_api . photosets . getPhotos ( photoset_id = setID , extras = extra ) #NEWLINE# photos = rsp . find ( 'photoset' ) . findall ( 'photo' ) #NEWLINE# for photo in photos : #NEWLINE# #INDENT# if ( photo . attrib [ 'title' ] == photos ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False