Visit.html_template = "../templates/visit.html" detailedstats = DetailedStatComponent() detailedstats.set_option('outdir', "../output") detailedstats.set_option('imagedir', 'images/') detailedstats.set_option('html_template', "../templates/detailed.html") detailedstats.set_option('html_toc_template', "../templates/detailed_toc.html") detailedstats.set_option('title', "Detailed Statistics for www.physik.fu-berlin.de/~goerz") detailedstats.set_option('visits_per_page', 250) # set class attributes for Visit objects i = 0 for testfile in testfiles: alp.filename(testfile) for x in alp: visits.add_logline(x) if len(visits.visits) > 250: for visit in visits.visits: i += 1 detailedstats.register_visit(visit) visits.clear_closed() # finish up visits.close_open_visits() for visit in visits.visits: detailedstats.register_visit(visit) visits.clear_all() detailedstats.finish()