#NEWLINE# def g07( res , req , resp ) : #NEWLINE# #INDENT# 'Resource exists?' #NEWLINE# hdr = [ ] #NEWLINE# if ( len ( ( res . content_types_provided ( req , resp ) or [ ] ) ) > 1 ) : #NEWLINE# #INDENT# hdr . append ( 'Accept' ) #NEWLINE# #UNINDENT# if ( len ( ( res . charsets_provided ( req , resp ) or [ ] ) ) > 1 ) : #NEWLINE# #INDENT# hdr . append ( 'Accept-Charset' ) #NEWLINE# #UNINDENT# if ( len ( ( res . encodings_provided ( req , resp ) or [ ] ) ) > 1 ) : #NEWLINE# #INDENT# hdr . append ( 'Accept-Encoding' ) #NEWLINE# #UNINDENT# if ( len ( ( res . languages_provided ( req , resp ) or [ ] ) ) > 1 ) : #NEWLINE# #INDENT# hdr . append ( 'Accept-Language' ) #NEWLINE# #UNINDENT# hdr . extend ( res . variances ( req , resp ) ) #NEWLINE# resp . vary = hdr #NEWLINE# return res . resource_exists ( req , res )