[svn] I initial work at adding caveareas. (Descirprion of parts of caves)

Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8226 by julian @ 1/24/2009 6:49 PM
This commit is contained in:
substantialnoninfringinguser
2009-05-13 05:45:26 +01:00
parent 98a3d44eed
commit efd4708526
7 changed files with 56 additions and 27 deletions

View File

@@ -27,6 +27,11 @@ def survexblock(request, survexpath):
ftext = survexblock.text
return render_to_response('survexblock.html', {'survexblock':survexblock, 'ftext':ftext, 'settings':settings })
def caveArea(request, name):
cavearea = models.CaveArea.objects.get(name = name)
cave = cavearea.cave
return render_to_response('cavearea.html', {'cavearea': cavearea, 'cave': cave, 'settings':settings })
def caveSearch(request):
query_string = ''
found_entries = None