示例#1
0
 def _generate_manifest_section(self):
     manifest_report = {
         'state': self.manifest_state,
         'execution_time': self.manifest_execution_time,
         'error_message': self.manifest_error_message,
         'error': reporting.format_exception(self.manifest_exception),
         'traceback': reporting.format_traceback(self.manifest_traceback),
     }
     return manifest_report
示例#2
0
 def add_failed_module(self, module, exception, traceback):
     """
     Updates the progress report that a module failed to be imported.
     """
     self.modules_error_count += 1
     self.modules_individual_errors = self.modules_individual_errors or {}
     error_key = '%s-%s-%s' % (module.name, module.version, module.author)
     self.modules_individual_errors[error_key] = {
         'exception' : reporting.format_exception(exception),
         'traceback' : reporting.format_traceback(traceback),
     }
示例#3
0
 def _metadata_section(self):
     metadata_report = {
         'state' : self.metadata_state,
         'execution_time' : self.metadata_execution_time,
         'current_query' : self.metadata_current_query,
         'query_finished_count' : self.metadata_query_finished_count,
         'query_total_count' : self.metadata_query_total_count,
         'error_message' : self.metadata_error_message,
         'error' : reporting.format_exception(self.metadata_exception),
         'traceback' : reporting.format_traceback(self.metadata_traceback),
     }
     return metadata_report
示例#4
0
 def _generate_isos_section(self):
     isos_report = {
         'state': self.isos_state,
         'execution_time': self.isos_execution_time,
         'total_count': self.isos_total_count,
         'finished_count': self.isos_finished_count,
         'error_count': self.isos_error_count,
         'individual_errors': self.isos_individual_errors,
         'error_message': self.isos_error_message,
         'error': reporting.format_exception(self.isos_exception),
         'traceback': reporting.format_traceback(self.isos_traceback),
     }
     return isos_report