def global_auditor(self): if not self._global_auditor: ac = get_mbs().audit_collection self._global_auditor = GlobalAuditor(audit_collection=ac) # register auditors with global auditor if self.auditors: for auditor in self.auditors: self._global_auditor.register_auditor(auditor) return self._global_auditor
def global_auditor(self): if not self._global_auditor: ac = get_mbs().audit_collection nh = self.audit_notification_handler self._global_auditor = GlobalAuditor(audit_collection=ac, notification_handler=nh) # register auditors with global auditor if self.auditors: for auditor in self.auditors: self._global_auditor.register_auditor(auditor) return self._global_auditor