summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chimere/urls.py2
-rw-r--r--chimere/views.py4
2 files changed, 6 insertions, 0 deletions
diff --git a/chimere/urls.py b/chimere/urls.py
index 5fd8002..e0153f0 100644
--- a/chimere/urls.py
+++ b/chimere/urls.py
@@ -114,6 +114,8 @@ urlpatterns += patterns(
url(r'^(?P<area_name>[a-zA-Z0-9_-]+/)?getDetail/'
r'(?P<key>[a-zA-Z_-]*\d+)/?$',
'getDetail', name="get_detail"),
+ url(r'^(?P<area_name>[a-zA-Z0-9_-]+/)?getDetail/undefined',
+ 'getDetailUndefined', name="get_detail_undefined"),
url(r'^(?P<area_name>[a-zA-Z0-9_-]+/)?getDescriptionDetail/'
r'?(?P<category_id>\d+)/?$', 'getDescriptionDetail',
name="get_description_detail"),
diff --git a/chimere/views.py b/chimere/views.py
index 796aca3..a91d187 100644
--- a/chimere/views.py
+++ b/chimere/views.py
@@ -609,6 +609,10 @@ def extraPage(request, area_name="", page_id=""):
context_instance=RequestContext(request))
+def getDetailUndefined(request, area_name):
+ return HttpResponse('')
+
+
def getDetail(request, area_name, key):
'''
Get the detail of a geographic item