Logo Search packages:      
Sourcecode: namebench version File versions  Download package

def libnamebench::base_ui::BaseUI::CreateReports (   self  )  [inherited]

Create CSV & HTML reports for the latest run.

Definition at line 115 of file base_ui.py.

00115                          :
    """Create CSV & HTML reports for the latest run."""
    if self.options.output_file:
      self.html_path = self.options.output_file
    else:
      self.html_path = GenerateOutputFilename('html')

    if self.options.csv_file:
      self.csv_path = self.options_csv_file
    else:
      self.csv_path = GenerateOutputFilename('csv')

    self.UpdateStatus('Saving HTML report to %s' % self.html_path)
    f = open(self.html_path, 'w')
    self.bmark.CreateReport(format='html', output_fp=f, config=self.options, csv_path=self.csv_path)
    f.close()

    self.UpdateStatus('Saving query details (CSV) to %s' % self.csv_path)
    self.bmark.SaveResultsToCsv(self.csv_path)

  def DisplayHtmlReport(self):


Generated by  Doxygen 1.6.0   Back to index