summaryrefslogtreecommitdiffstats
path: root/core/views_caves.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2012-08-10 19:02:13 +0200
committerMartin Green <martin.speleo@gmail.com>2012-08-10 19:02:13 +0200
commit52736ca1b34f7f004e68ae00a03fa876edf8199d (patch)
treea7aae1a86c9b4270526e21f0ef1c12233ceca65a /core/views_caves.py
parent484f8f76cc1c3b44ab7b4b343cdc7ed3f80ed835 (diff)
downloadtroggle-52736ca1b34f7f004e68ae00a03fa876edf8199d.tar.gz
troggle-52736ca1b34f7f004e68ae00a03fa876edf8199d.tar.bz2
troggle-52736ca1b34f7f004e68ae00a03fa876edf8199d.zip
Made a prospecting guide and fixed survex station description. Removed parsing of underground descriptions to wikis.
Diffstat (limited to 'core/views_caves.py')
-rw-r--r--core/views_caves.py34
1 files changed, 33 insertions, 1 deletions
diff --git a/core/views_caves.py b/core/views_caves.py
index 2c32aa4..ae5f46f 100644
--- a/core/views_caves.py
+++ b/core/views_caves.py
@@ -1,4 +1,4 @@
-from troggle.core.models import Cave, CaveAndEntrance, Survey, Expedition, QM, CaveDescription, Entrance
+from troggle.core.models import Cave, CaveAndEntrance, Survey, Expedition, QM, CaveDescription, Entrance, Area
from troggle.core.forms import CaveForm, CaveAndEntranceFormSet, VersionControlCommentForm, EntranceForm
import troggle.core.models as models
import troggle.settings as settings
@@ -204,3 +204,35 @@ def get_entrances(request, caveslug):
def get_qms(request, caveslug):
cave = Cave.objects.get(caveslug__slug = caveslug)
return render_with_context(request,'options.html', {"items": [(e.entrance.slug(), e.entrance.slug()) for e in cave.entrances()]})
+
+areanames = [
+ #('', 'Location unclear'),
+ ('1a', '1a &ndash; Plateau: around Top Camp'),
+ ('1b', '1b &ndash; Western plateau near 182'),
+ ('1c', '1c &ndash; Eastern plateau near 204 walk-in path'),
+ ('1d', '1d &ndash; Further plateau around 76'),
+ ('2a', '2a &ndash; Southern Schwarzmooskogel near 201 path and the Nipple'),
+ ('2b', '2b &ndash; Eish&ouml;hle area'),
+ ('2c', '2c &ndash; Kaninchenh&ouml;hle area'),
+ ('2d', '2d &ndash; Steinbr&uuml;ckenh&ouml;hle area'),
+ ('3', '3 &ndash; Br&auml;uning Alm'),
+ ('4', '4 &ndash; Kratzer valley'),
+ ('5', '5 &ndash; Schwarzmoos-Wildensee'),
+ ('6', '6 &ndash; Far plateau'),
+ ('7', '7 &ndash; Egglgrube'),
+ ('8a', '8a &ndash; Loser south face'),
+ ('8b', '8b &ndash; Loser below Dimmelwand'),
+ ('8c', '8c &ndash; Augst See'),
+ ('8d', '8d &ndash; Loser-Hochganger ridge'),
+ ('9', '9 &ndash; Gschwandt Alm'),
+ ('10', '10 &ndash; Altaussee'),
+ ('11', '11 &ndash; Augstbach')
+ ]
+
+
+def prospecting(request):
+ for key, name in areanames:
+ print key, Area.objects.get(short_name = key)
+ areas = [ (name, Area.objects.get(short_name = key)) for key, name in areanames ]
+ return render_with_context(request,'prospecting.html', {"areas": areas})
+