@post('/:hypervisor/:host/guests')
def guest_import(hypervisor, host):
    response.content_type = "application/json"
    manager = create_manager(hypervisor, host)
    guest = manager.guest_import(
        request.environ['wsgi.input'],
        request.content_length
    )
    location = "/%s/%s/guests/%s" % (hypervisor, host, guest["id"])
    response.set_header("Location", location)

    manager.logout()

    return json.dumps(guest)
Import a new guest
dataset/ETHPy150Open locaweb/simplestack/src/simplestack/server.py/guest_import