def output_all(self): stylesheet_path = PathTools.native_to_posix( os.path.join( compatrelpath(config_basic.get_results_directory(), os.path.dirname(self.file().name)), 'styles.css')) print >> self.file(), HTMLHelper.get_html_head( title=self.description(), charset='iso-8859-1', stylesheet=stylesheet_path, ) print >> self.file(), HTMLHelper.get_preamble() print >> self.file(), """ <h1>BTC RevEngTools Results: %s</h1> <h2>System: %s, Version: %s, Repository revision: %s</h2> <h2>Analysis time: %s</h2> """ % ( self.description(), # TODO hierfür sollten die Graph Decorator verwendet werden config_basic.get_system(), config_basic.get_version(), FallbackVersionDescriber( config_version_describer).describe_local_version( config_basic.get_local_source_base_dir(), False)[2], datetime.strftime(datetime.now(), "%Y-%m-%d %H:%M:%S")) self.__table_output.output_all() print >> self.file(), HTMLHelper.get_postamble() print >> self.file(), HTMLHelper.get_html_tail()
def _write_tail(self): print >> self.__output_file, HTMLHelper.get_html_tail()