예제 #1
0
 def populate_results(self, data_collection):
     if data_collection.html_report[-4:] == 'html':
         if self.results_view.mimeSourceFactory().\
                data(data_collection.html_report) == None:
             self.results_view.setText(html_template.html_report(data_collection))
         else:
             self.results_view.setSource(data_collection.html_report)
     else:
         self.results_view.setText(html_template.html_report(data_collection))
예제 #2
0
 def populate_results(self, data_collection):
     if data_collection.html_report[-4:] == "html":
         if (self.results_view.mimeSourceFactory().data(
                 data_collection.html_report) is None):
             self.results_view.setText(
                 html_template.html_report(data_collection))
         else:
             self.results_view.setSource(data_collection.html_report)
     else:
         self.results_view.setText(
             html_template.html_report(data_collection))
예제 #3
0
 def populate_results(self, data_collection):
     if data_collection.html_report[-4:] == "html":
         if (
             self.results_view.mimeSourceFactory().data(data_collection.html_report)
             is None
         ):
             self.results_view.setText(html_template.html_report(data_collection))
         else:
             self.results_view.setSource(data_collection.html_report)
     else:
         self.results_view.setText(html_template.html_report(data_collection))