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'
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]
def _closed(self, report_file): with self.edit_log() as report: if report[report_file]['status'] != "created": raise errors.ReportNotCreated() del report[report_file]