def execute(self) -> Iterator[ACResult]: for site_id in config.sitenames(): for result in self._check_site(site_id): result.site_id = site_id yield result
def site_exists(site_name: SiteId) -> None: if site_name not in config.sitenames(): raise ValidationError(f"Site {site_name!r} does not exist.")
def is_relevant(self) -> bool: # This check is only executed on the central instance of multisite setups return len(config.sitenames()) > 1
def execute(self): for site_id in config.sitenames(): site_config = config.site(site_id) for result in self._check_site(site_id, site_config): result.site_id = site_id yield result