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

All Samples(5)  |  Call(1)  |  Derive(0)  |  Import(4)

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/logic/management/commands/cyclades-astakos-migrate-013.py   synnefo(Download)
from synnefo.lib.utils import case_unique
from synnefo.db.models import Network, VirtualMachine
from synnefo.userdata.models import PublicKeyPair
 
from snf_django.lib import astakos

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/userdata/views.py   synnefo(Download)
 
from synnefo.userdata import rest
from synnefo.userdata.models import PublicKeyPair
from synnefo.userdata.util import exportKey
from snf_django.lib.astakos import get_user

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/api/util.py   synnefo(Download)
    """
    # also check PublicKeys a user with no servers/networks exist
    from synnefo.userdata.models import PublicKeyPair
    from synnefo.db.models import VirtualMachine, Network
 

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/userdata/tests.py   synnefo(Download)
from mock import patch
 
from synnefo.userdata.models import PublicKeyPair, SSH_KEY_MAX_CONTENT_LENGTH
 
 
        base64.b64decode(private)
 
        new_key = PublicKeyPair()
        new_key.content = data['public']
        new_key.name = "new key"