From 3a5253aaab70e725975067a9e0896a21f9d660f0 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 28 Aug 2011 04:57:53 +0530 Subject: [PATCH] some more outline to search_json --- gazetteer/places/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gazetteer/places/views.py b/gazetteer/places/views.py index 9fda4e1..3840f60 100644 --- a/gazetteer/places/views.py +++ b/gazetteer/places/views.py @@ -8,6 +8,10 @@ def search(request): return render_to_response("search.html", d) def search_json(request): + search_term = request.GET.get("search", "") + bbox = request.GET.get("bbox", False) + if not bbox: + return render_to_json_response({'error': 'no bbox parameter'}) d = {} return render_to_json_response(d)