From 8916b460e1b915d1a3aa32b3691da67b753f652b Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Wed, 13 May 2009 05:55:00 +0100 Subject: [svn] Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8255 by aaron @ 2/23/2009 4:16 AM --- expo/views_logbooks.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'expo/views_logbooks.py') diff --git a/expo/views_logbooks.py b/expo/views_logbooks.py index 38aeac6..fae7491 100644 --- a/expo/views_logbooks.py +++ b/expo/views_logbooks.py @@ -14,6 +14,13 @@ import re @models.permalink #this allows the nice get_absolute_url syntax we are using +def getNotablePersons(): + notablepersons = [] + for person in Person.objects.all(): + if person.bisnotable(): + notablepersons.append(person) + return notablepersons + def personindex(request): persons = Person.objects.all() # From what I can tell, "persons" seems to be the table rows, while "personss" is the table columns. - AC 16 Feb 09 @@ -23,7 +30,11 @@ def personindex(request): for i in range(ncols): personss.append(persons[i * nc: (i + 1) * nc]) - notablepersons = Person.objects.filter(bisnotable=True) + notablepersons = [] + for person in Person.objects.all(): + if person.bisnotable(): + notablepersons.append(person) + return render_response(request,'personindex.html', {'persons': persons, 'personss':personss, 'notablepersons':notablepersons, }) def expedition(request, expeditionname): -- cgit v1.2.3