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_logbooks.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'expo/views_logbooks.py') 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 -- cgit v1.2.3