コード例 #1
0
def connect_to_circus(endpoint, ssh_server=None):
    client = LiveClient(endpoint=endpoint, ssh_server=ssh_server)
    client.update_watchers()
    set_client(client)
    session = get_session()
    if session is not None:
        session['endpoint'] = endpoint
        session.save()
    return client
コード例 #2
0
ファイル: circushttpd.py プロジェクト: MPOWER4RU/circus
def connect():
    endpoint = request.forms.endpoint
    global client
    _client = LiveClient(endpoint=endpoint)
    _client.verify()
    if _client.connected:
        client = _client
        redirect('/?msg=Connected')
    else:
        redirect('/?msg=Failed to connect')
コード例 #3
0
def connect():
    endpoint = request.forms.endpoint
    global client
    _client = LiveClient(endpoint=endpoint)
    _client.verify()
    if _client.connected:
        client = _client
        redirect('/?msg=Connected')
    else:
        redirect('/?msg=Failed to connect')
コード例 #4
0
ファイル: circushttpd.py プロジェクト: peterlandry/circus
def connect():
    endpoint = request.forms.endpoint
    global client
    _client = LiveClient(endpoint=endpoint)
    _client.verify()
    if _client.connected:
        client = _client
        set_message('You are now connected')
    else:
        set_message('Impossible to connect')
    redirect('/')
コード例 #5
0
ファイル: circushttpd.py プロジェクト: mineo/circus
def connect_to_endpoint(endpoint):
    client = LiveClient(endpoint=endpoint)
    client.update_watchers()
    return client
コード例 #6
0
ファイル: circushttpd.py プロジェクト: themgt/circus
def connect_to_endpoint(endpoint):
    client = LiveClient(endpoint=endpoint)
    client.update_watchers()
    return client