Exemplo 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'
Exemplo 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]
Exemplo 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]