#NEWLINE# def _get_cache_key( self , record_or_path , alt = PRIMARY_ALT , virtual_path = None ) : #NEWLINE# #INDENT# if isinstance ( record_or_path , string_types ) : #NEWLINE# #INDENT# path = record_or_path . strip ( '/' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( path , virtual_path ) = split_virtual_path ( record_or_path . path ) #NEWLINE# path = path . strip ( '/' ) #NEWLINE# virtual_path = ( virtual_path or None ) #NEWLINE# alt = record_or_path . alt #NEWLINE# #UNINDENT# return ( path , record_or_path , virtual_path )