#NEWLINE# def RenderDrill( self , url , urlstatsdict , recording_starttime , source , filter_condition ) : #NEWLINE# #INDENT# 'Rendering analysis page that drills into URL.\n\n    Args:\n      url: URL that is being drilled into.\n      urlstatsdict: A dictionary with keys being URL paths, and values\n        being URLStat objects.\n      recording_starttime: Timestamp when recording of data starts expressed\n        in seconds. This is the timestamp of the earliest recorded Appstats\n        data.\n      source: Source of Appstats data. Either filename if being read from\n        a file or MEMCACHE if being read from memcache.\n      filter_condition: Filter object that specifies filtering criteria on\n        which requests must be shown.\n    ' #NEWLINE# if ( url in urlstatsdict ) : #NEWLINE# #INDENT# urlstats = urlstatsdict [ url ] #NEWLINE# drill = process . DrillURL ( urlstats ) #NEWLINE# data = { #NEWLINE# #INDENT# 'url' : url , #NEWLINE# 'drill' : drill , #NEWLINE# 'first_timestamp' : recording_starttime , #NEWLINE# 'recordingstart' : time . asctime ( time . gmtime ( recording_starttime ) ) , #NEWLINE# 'source' : source , #NEWLINE# 'filter_json' : json . dumps ( data . __dict__ ) , #NEWLINE# 'filter' : filter_condition . __dict__ , #NEWLINE# #UNINDENT# } #NEWLINE# path = os . path . join ( self . dirname , 'templates/drill.html' ) #NEWLINE# self . response . out . write ( template . render ( path , data ) )