Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/s/y/synnefo-HEAD/snf-astakos-app/astakos/scripts/snf_service_export.py   synnefo(Download)
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'synnefo.settings'
import sys
from optparse import OptionParser
from synnefo.lib.services import fill_endpoints, filter_public
def print_definitions(d, base_url):
    fill_endpoints(d, base_url)
    print json.dumps(filter_public(d), indent=4)
 
 

src/s/y/synnefo-HEAD/snf-astakos-app/astakos/im/settings.py   synnefo(Download)
from astakos.api.services import astakos_services as vanilla_astakos_services
from synnefo.lib import join_urls
from synnefo.lib.services import fill_endpoints
 
from copy import deepcopy
 
astakos_services = deepcopy(vanilla_astakos_services)
fill_endpoints(astakos_services, BASE_URL)
ACCOUNTS_PREFIX = astakos_services['astakos_account']['prefix']
VIEWS_PREFIX = astakos_services['astakos_ui']['prefix']

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/cyclades_settings.py   synnefo(Download)
from synnefo.lib import join_urls, parse_base_url
from synnefo.api.services import cyclades_services as vanilla_cyclades_services
from synnefo.lib.services import fill_endpoints
from astakosclient import AstakosClient
 
 
cyclades_services = deepcopy(vanilla_cyclades_services)
fill_endpoints(cyclades_services, BASE_URL)
 
COMPUTE_PREFIX = cyclades_services['cyclades_compute']['prefix']

src/s/y/synnefo-HEAD/snf-pithos-app/pithos/api/settings.py   synnefo(Download)
from django.conf import settings
from synnefo.lib import parse_base_url, join_urls
from synnefo.lib.services import fill_endpoints
from pithos.api.services import pithos_services as vanilla_pithos_services
from astakosclient import AstakosClient
 
pithos_services = deepcopy(vanilla_pithos_services)
fill_endpoints(pithos_services, BASE_URL)
PITHOS_PREFIX = pithos_services['pithos_object-store']['prefix']
PUBLIC_PREFIX = pithos_services['pithos_public']['prefix']