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

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

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/management/common.py   synnefo(Download)
from synnefo.api import util
from synnefo.logic import backend as backend_mod
from synnefo.logic.rapi import GanetiApiError, GanetiRapiClient
from synnefo.logic.utils import (id_from_instance_name,
                                 id_from_network_name,
def check_backend_credentials(clustername, port, username, password):
    try:
        client = GanetiRapiClient(clustername, port, username, password)
        # This command will raise an exception if there is no
        # write-access

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/logic/rapi_pool.py   synnefo(Download)
 
from objpool import ObjectPool
from synnefo.logic.rapi import GanetiRapiClient
 
from logging import getLogger
    def _pool_create(self):
        log.debug("CREATE: Creating new client from pool %r", self)
        client = GanetiRapiClient(self.host, self.port, self.user, self.passwd)
        client._pool = self
        return client