summaryrefslogtreecommitdiffstats
path: root/expo/views_logbooks.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:48:47 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:48:47 +0100
commitcb52c47aa9632a6c0affde9b0ceeab06877c760b (patch)
tree4a242f8a7929db5c1a49958f2aec3a826af893b3 /expo/views_logbooks.py
parented345f25760d8927f834a69202c2b9b2cef71ee0 (diff)
downloadtroggle-cb52c47aa9632a6c0affde9b0ceeab06877c760b.tar.gz
troggle-cb52c47aa9632a6c0affde9b0ceeab06877c760b.tar.bz2
troggle-cb52c47aa9632a6c0affde9b0ceeab06877c760b.zip
[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
Diffstat (limited to 'expo/views_logbooks.py')
-rw-r--r--expo/views_logbooks.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/expo/views_logbooks.py b/expo/views_logbooks.py
index 513701b..a179c50 100644
--- a/expo/views_logbooks.py
+++ b/expo/views_logbooks.py
@@ -11,13 +11,14 @@ import re
def personindex(request):
persons = Person.objects.all()
-
personss = [ ]
ncols = 5
nc = (len(persons) + ncols - 1) / ncols
for i in range(ncols):
personss.append(persons[i * nc: (i + 1) * nc])
- return render_to_response('personindex.html', {'persons': persons, 'personss':personss, 'settings': settings})
+
+ notablepersons = Person.objects.filter(bisnotable=True)
+ return render_to_response('personindex.html', {'persons': persons, 'personss':personss, 'notablepersons':notablepersons, 'settings': settings})
def expedition(request, expeditionname):
year = int(expeditionname)
@@ -42,12 +43,10 @@ def personexpedition(request, name, expeditionname):
personexpedition = person.personexpedition_set.get(expedition=expedition)
return render_to_response('personexpedition.html', {'personexpedition': personexpedition, 'settings': settings})
-
def logbookentry(request, logbookentry_id):
logbookentry = LogbookEntry.objects.filter(href = logbookentry_id)[0]
return render_to_response('logbookentry.html', {'logbookentry': logbookentry, 'settings': settings})
-
def logbookSearch(request, extra):
query_string = ''
found_entries = None