Esempio n. 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'
Esempio n. 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]
Esempio n. 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]