Exemple #1
0
 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
Exemple #2
0
 def site_exists(site_name: SiteId) -> None:
     if site_name not in config.sitenames():
         raise ValidationError(f"Site {site_name!r} does not exist.")
Exemple #3
0
 def is_relevant(self) -> bool:
     # This check is only executed on the central instance of multisite setups
     return len(config.sitenames()) > 1
Exemple #4
0
 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