#NEWLINE# def title_and_id( pset , photo , suffix ) : #NEWLINE# #INDENT# '\n    Name file after title and photo id.\n\n    @param pset: Flickr.Photoset, the photoset\n    @param photo: Flickr.Photo, the photo\n    @param suffice: str, optional suffix\n    @return: str, the filename\n    ' #NEWLINE# if ( not photo . title ) : #NEWLINE# #INDENT# return idd ( pset , suffix , suffix ) #NEWLINE# #UNINDENT# return '{0}-{1}{2}.jpg' . format ( photo . title , photo . id , suffix )