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

All Samples(9)  |  Call(0)  |  Derive(0)  |  Import(9)

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/management/pprint.py   synnefo(Download)
from synnefo.lib.ordereddict import OrderedDict
from snf_django.lib.astakos import UserCache
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
                              ASTAKOS_AUTH_URL)
from synnefo.db.models import Backend, pooled_rapi_client
        title = "State of Network %s in DB" % network.id
 
    ucache = UserCache(ASTAKOS_AUTH_URL, ASTAKOS_TOKEN)
    userid = network.userid
 
        title = "State of Server %s in DB" % server.id
 
    ucache = UserCache(ASTAKOS_AUTH_URL, ASTAKOS_TOKEN)
    userid = server.userid
 
        title = "State of volume %s in DB" % volume.id
 
    ucache = UserCache(ASTAKOS_AUTH_URL, ASTAKOS_TOKEN)
    userid = volume.userid
 

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/volume/management/commands/volume-list.py   synnefo(Download)
from snf_django.management.commands import ListCommand
from synnefo.db.models import Volume
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
                              ASTAKOS_AUTH_URL)
from logging import getLogger
    deleted_field = "deleted"
    user_uuid_field = "userid"
    astakos_auth_url = ASTAKOS_AUTH_URL
    astakos_token = ASTAKOS_TOKEN
    select_related = ["volume_type"]

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/logic/management/commands/floating-ip-list.py   synnefo(Download)
from synnefo.db.models import IPAddress
from snf_django.management.commands import ListCommand
from synnefo.settings import CYCLADES_SERVICE_TOKEN, ASTAKOS_AUTH_URL
from logging import getLogger
log = getLogger(__name__)
    deleted_field = "deleted"
    user_uuid_field = "userid"
    astakos_auth_url = ASTAKOS_AUTH_URL
    astakos_token = CYCLADES_SERVICE_TOKEN
    filters = {'floating_ip': True}

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/logic/management/commands/subnet-list.py   synnefo(Download)
 
from snf_django.management.commands import ListCommand, CommandError
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
                              ASTAKOS_AUTH_URL)
from synnefo.db.models import Subnet
 
    object_class = Subnet
    astakos_auth_url = ASTAKOS_AUTH_URL
    astakos_token = ASTAKOS_TOKEN
    deleted_field = "deleted"

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/logic/management/commands/server-show.py   synnefo(Download)
                                       get_image)
from snf_django.lib.astakos import UserCache
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
                              ASTAKOS_AUTH_URL)
from snf_django.management import utils
        image = '%s (%s)' % (imageid, image_name)
 
        usercache = UserCache(ASTAKOS_AUTH_URL, ASTAKOS_TOKEN)
        kv = {
            'id': server.id,

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/logic/management/commands/server-list.py   synnefo(Download)
from synnefo.management.common import get_resource
from synnefo.api.util import get_image
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
                              ASTAKOS_AUTH_URL)
from logging import getLogger
    deleted_field = "deleted"
    user_uuid_field = "userid"
    astakos_auth_url = ASTAKOS_AUTH_URL
    astakos_token = ASTAKOS_TOKEN
    select_related = ["flavor.volume_type"]

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/logic/management/commands/port-list.py   synnefo(Download)
from snf_django.management.commands import ListCommand
from synnefo.db.models import NetworkInterface
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
                              ASTAKOS_AUTH_URL)
 
    object_class = NetworkInterface
    user_uuid_field = "userid"
    astakos_auth_url = ASTAKOS_AUTH_URL
    astakos_token = ASTAKOS_TOKEN
    prefetch_related = ["ips"]

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/logic/management/commands/network-list.py   synnefo(Download)
from snf_django.management.commands import ListCommand
from synnefo.db.models import Network
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
                              ASTAKOS_AUTH_URL)
 
    deleted_field = "deleted"
    user_uuid_field = "userid"
    astakos_auth_url = ASTAKOS_AUTH_URL
    astakos_token = ASTAKOS_TOKEN
 

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/quotas/__init__.py   synnefo(Download)
                               IPAddress, Volume)
 
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
                              ASTAKOS_AUTH_URL)
from astakosclient import AstakosClient
    def get(cls):
        if cls._object is None:
            cls._object = AstakosClient(ASTAKOS_TOKEN,
                                        ASTAKOS_AUTH_URL,
                                        use_pool=True,