summaryrefslogtreecommitdiffstats
path: root/core/views_logbooks.py
diff options
context:
space:
mode:
authorWookey <wookey@wookware.org>2011-07-10 23:30:36 +0100
committerWookey <wookey@wookware.org>2011-07-10 23:30:36 +0100
commit28924db9f87af72343206383e9065841e3fd1c14 (patch)
treeeace5c8be2836e67374c3ca28eaaed662ea52d01 /core/views_logbooks.py
parent30829ff9c80783a33bf18483b70a987ac27bb09d (diff)
parent50545af223eaee708cc465363247201123707bd3 (diff)
downloadtroggle-28924db9f87af72343206383e9065841e3fd1c14.tar.gz
troggle-28924db9f87af72343206383e9065841e3fd1c14.tar.bz2
troggle-28924db9f87af72343206383e9065841e3fd1c14.zip
merge fix from martin's tip.
Diffstat (limited to 'core/views_logbooks.py')
-rw-r--r--core/views_logbooks.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/views_logbooks.py b/core/views_logbooks.py
index f9190c0..4495f03 100644
--- a/core/views_logbooks.py
+++ b/core/views_logbooks.py
@@ -241,4 +241,12 @@ def delLogbookEntry(lbe):
pt.delete()
lbe.delete()
os.remove(lbe.filename)
+
+def get_people(request, expeditionslug):
+ exp = Expedition.objects.get(year = expeditionslug)
+ return render_with_context(request,'options.html', {"items": [(pe.slug, pe.name) for pe in exp.personexpedition_set.all()]})
+
+def get_logbook_entries(request, expeditionslug):
+ exp = Expedition.objects.get(year = expeditionslug)
+ return render_with_context(request,'options.html', {"items": [(le.slug, "%s - %s" % (le.date, le.title)) for le in exp.logbookentry_set.all()]})