コード例 #1
0
def json_location(model, request):
    def extract_title(record):
        return location_title(
            request,
            record.street,
            record.zip,
            record.city,
            record.lat,
            record.lon)
    return json_references(
        model, request, search_locations, LOCATION_LIMIT,
        extract_title=extract_title)
コード例 #2
0
def json_facility(model, request):
    return json_references(model, request, search_facilities, FACILITY_LIMIT)
コード例 #3
0
def json_occasion(model, request):
    return json_references(model, request, search_occasions, OCCASION_LIMIT)