Example #1
0
 def _incomplete(self, report_file):
     with self.edit_log() as report:
         if report[report_file]['status'] != "created":
             raise errors.ReportNotCreated()
         report[report_file]['status'] = 'incomplete'
Example #2
0
 def _closed(self, report_file):
     with self.edit_log() as report:
         rs = report[report_file]['status']
         if rs != "created" and rs != "incomplete":
             raise errors.ReportNotCreated()
         del report[report_file]
Example #3
0
 def _closed(self, report_file):
     with self.edit_log() as report:
         if report[report_file]['status'] != "created":
             raise errors.ReportNotCreated()
         del report[report_file]