From cb52c47aa9632a6c0affde9b0ceeab06877c760b Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Wed, 13 May 2009 05:48:47 +0100 Subject: [svn] yorkshire work with tunnel integration Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8232 by julian @ 1/29/2009 11:40 PM --- expo/views_caves.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'expo/views_caves.py') diff --git a/expo/views_caves.py b/expo/views_caves.py index 3363a2e..684f4b4 100644 --- a/expo/views_caves.py +++ b/expo/views_caves.py @@ -7,15 +7,10 @@ import search def caveindex(request): caves = Cave.objects.all() - notablecavehrefs = [ "161", "204", "258", "76" ] + notablecavehrefs = [ "161", "204", "258", "76" ] # could detect notability by trips and notability of people who have been down them notablecaves = [ Cave.objects.get(href=href) for href in notablecavehrefs ] return render_to_response('caveindex.html', {'caves': caves, 'notablecaves':notablecaves, 'settings': settings}) -def cave(request, cave_id): - #hm, we're only choosing by the number within kataster, needs to be fixed. Caves in 1626 will presumably not work. - AC 7DEC08 - cave = Cave.objects.filter(kataster_number = cave_id)[0] - return render_to_response('cave.html', {'cave': cave, 'settings': settings}) - def cavehref(request, href): cave = Cave.objects.get(href=href) return render_to_response('cave.html', {'cave': cave, 'settings': settings}) -- cgit v1.2.3