Exemple #1
0
    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
Exemple #2
0
    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
Exemple #3
0
 def _load_env_vars():
     from site import Config as SiteConfig
     return {'sites': [SiteConfig.load_env_vars()]}
Exemple #4
0
 def _load_env_vars():
     from site import Config as SiteConfig
     return {'sites': [SiteConfig.load_env_vars()]}