def run(self, input): report = None if self.options.check and not input['CheckForMask']['MaskPresent']: options = copy.deepcopy(self.options) options.user = self.user if input.has_key('BaseDataset'): options.name = input['BaseDataset']['Name'] else: options.name = None check = IntegrityCheck(self.dataset,options) check.test() report = check.structured() pub = PublishToFileSystem(check) pub.publish(report) elif input['CheckForMask']['MaskPresent']: report = input['CheckForMask']['Report'] return {'MaskPresent':report is not None,'Report':report}
def run(self, input): report = None if self.options.check and not input['CheckForMask']['MaskPresent']: options = copy.deepcopy(self.options) options.user = self.user if input.has_key('BaseDataset'): options.name = input['BaseDataset']['Name'] else: options.name = None check = IntegrityCheck(self.dataset, options) check.test() report = check.structured() pub = PublishToFileSystem(check) pub.publish(report) elif input['CheckForMask']['MaskPresent']: report = input['CheckForMask']['Report'] return {'MaskPresent': report is not None, 'Report': report}