def main(): riak_host = config.get_str('riak', 'host') riak_port = config.get_int('riak', 'port') riakalchemy.connect(host=riak_host, port=riak_port) socket = eventlet.listen(('', 9877)) eventlet.wsgi.server(socket, application)
def __init__(self, global_config): riak_host = config.get_str('riak', 'host') riak_port = config.get_int('riak', 'port') riakalchemy.connect(host=riak_host, port=riak_port)