Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
    def _write_header(self):
        title = self.__output_type
        charset = "iso-8859-1"
        stylesheet = "styles.css"

        print >> self.__output_file, HTMLHelper.get_html_head(
            title, charset, stylesheet)
Exemplo n.º 3
0
    def _write_header(self):
        title = "Module list for %s" % self.__analysis_info[0]
        charset = "iso-8859-1"
        stylesheet = "styles.css"

        print >> self.__output_file, HTMLHelper.get_html_head(
            title, charset, stylesheet)
Exemplo n.º 4
0
    def _write_preamble(self):
        print >> self.__output_file, HTMLHelper.get_preamble()
        print >> self.__output_file, """
        <img src="images/btclogo.png" alt="BTC-Logo" align="right" width="200px"/>
        """
        print >> self.__output_file, """
        <h1>Overview of BTC RevEngTools Results</h1>
        <h2>System: %s, Version: %s, Repository revision: %s</h2>
        <h2>Analyzed repository subdirectories: %s</h2>
        <h2>Analysis time: %s</h2>
        
        <p>In case of any questions, please contact 
        <a href="mailto:[email protected]">Simon Giesecke</a>
        or create a bug report or feature proposal in the 
        <a href="http://ejra.e-konzern.de:8080/browse/BTCEPMARCH">TG Architektur JIRA project</a>. 
        Please choose Architekturmanagement-Werkzeuge: Python as the component.
        </p>
        
        <p>Note: The PDF versions may be empty for large graphs due to a bug in the 
        graph layouter GraphViz. Refer to the SVG version in these cases. The SVG 
        versions contain additional information as node and edge tooltips. <b>Google Chrome</b> 
        is not optimal, but the best currently known option to view SVGs. <b>Firefox</b> can be used,
        but is a bit fiddly regarding tooltips. <b>Internet Explorer</b> is not suited to view SVGs.</p>
        
        <p>Please refer to this <a href="GraphIntroduction.pdf">description of the graph notation</a>.</p>

        """ % (self.__analysis_info[0], self.__analysis_info[1],
               self.__analysis_info[2], ", ".join(self.__analysis_info[3]),
               datetime.strftime(datetime.now(), "%Y-%m-%d %H:%M:%S"))
Exemplo n.º 5
0
    def _write_header(self):
        title = "Overview of BTC RevEngTools Results for %s" % self.__analysis_info[
            0]
        charset = "iso-8859-1"
        stylesheet = "styles.css"

        print >> self.__output_file, HTMLHelper.get_html_head(
            title, charset, stylesheet)
Exemplo n.º 6
0
 def _write_preamble(self):
     print >> self.__output_file, HTMLHelper.get_preamble()
     print >> self.__output_file, """
     <img src="images/btclogo.png" alt="BTC-Logo" align="right" width="200px"/>
     """
     print >> self.__output_file, """
     <h1>%s</h1>
     <h2>System: %s, Version: %s, Repository revision: %s</h2>
     <h2>Analysis time: %s</h2>
     
     """ % (self.__output_type, self.__analysis_info[0],
            self.__analysis_info[1], self.__analysis_info[2],
            datetime.strftime(datetime.now(), "%Y-%m-%d %H:%M:%S"))
Exemplo n.º 7
0
 def _write_tail(self):
     print >> self.__output_file, HTMLHelper.get_html_tail()
Exemplo n.º 8
0
 def _write_postamble(self):
     print >> self.__output_file, HTMLHelper.get_postamble()