def _load_site(self, site_configs): """ Create a collection of Site objects based on the configuration provided :param site_configs: :return: (list) Site configuration objects """ from site import Config as SiteConfig sites = [] for site_config in site_configs: sites.append(SiteConfig.create(site_config, self)) return sites
def _load_env_vars(): from site import Config as SiteConfig return {'sites': [SiteConfig.load_env_vars()]}