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

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

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/volume/urls.py   synnefo(Download)
def snapshot_metadata_demux(request, snapshot_id):
    if request.method == 'GET':
        return views.list_snapshot_metadata(request, snapshot_id)
    elif request.method == 'POST':
        return views.update_snapshot_metadata(request, snapshot_id,
                                              reset=False)
    elif request.method == 'PUT':
        return views.update_snapshot_metadata(request, snapshot_id, reset=True)