def configure(self, other_config): return { 'supervisord_port': unique_int( 7000, other_config.get('supervisord_port')), 'zeo_port': unique_int( 7500, other_config.get('zeo_port')), }
def _configure(self, other_sites): other_config = {} for site in other_sites: for name, value in site.config.items(): other_config.setdefault(name, []).append(value) config = self.build.configure(other_config) if 'http_port' not in config: config['http_port'] = unique_int( 8001, other_config.get('http_port')) return config