Example #1
0
def all(_ak=None):
    
    bundle_create.all(ak)
    bundle_update.all(ak)
    bundle_list.all(ak)
    bundle_delete.all(ak)
    metadata_create.all(ak)
    metadata_update.all(ak)
    metadata_delete.all(ak)
    track_create.all(ak)
    track_update.all(ak)
    track_delete.all(ak)
    search.all(ak)
    error.all(ak)
Example #2
0
def find_registry(request):
    loc = request.params['loc'][0]
    maxhits = int(request.params['maxhits'][0])
    res = {}
    if loc == '':
        res['registries'] = search.all('regoff.db')[:maxhits]
    else:
        res['query_location'] = loc
        res['query_latlong'], res['registries'] = \
            search.search('regoff.db', loc, maxhits=maxhits)
    return res
Example #3
0
def find_hospital(request):
    loc = request.params['loc'][0]
    maxhits = int(request.params['maxhits'][0])
    need_aande = bool(int(request.params['need_aande'][0]))
    res = {}
    if loc == '':
        res['hospitals'] = search.all('hospitals.db', need_aande=need_aande)[:maxhits]
    else:
        res['query_location'] = loc
        res['query_latlong'], res['hospitals'] = \
            search.search('hospitals.db', loc, maxhits=maxhits,
                          need_aande=need_aande)
    return res