#NEWLINE# def __init__( self , metadata , instances , path , site = None , language = None ) : #NEWLINE# #INDENT# self . __metadata = self #NEWLINE# if metadata . _meta . use_cache : #NEWLINE# #INDENT# if ( metadata . _meta . use_sites and site ) : #NEWLINE# #INDENT# hexpath = hashlib . md5 ( iri_to_uri ( ( site . domain + path ) ) ) . hexdigest ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# hexpath = hashlib . md5 ( iri_to_uri ( path ) ) . hexdigest ( ) #NEWLINE# #UNINDENT# if metadata . _meta . use_i18n : #NEWLINE# #INDENT# self . __cache_prefix = ( 'rollyourown.seo.%s.%s.%s' % ( self . __metadata . __class__ . __name__ , hexpath , language ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . __cache_prefix = ( 'rollyourown.seo.%s.%s' % ( self . __metadata . __class__ . __name__ , hexpath ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . __cache_prefix = None #NEWLINE# #UNINDENT# self . __instances_original = instances #NEWLINE# self . __instances_cache = [ ]