diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:55:00 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:55:00 +0100 |
commit | 8916b460e1b915d1a3aa32b3691da67b753f652b (patch) | |
tree | dd306a439c4a62188ba5a1f2e67e11cf811df19e /expo/views_logbooks.py | |
parent | b57452f68de8f73c63222c61fdae84f900c3a190 (diff) | |
download | troggle-8916b460e1b915d1a3aa32b3691da67b753f652b.tar.gz troggle-8916b460e1b915d1a3aa32b3691da67b753f652b.tar.bz2 troggle-8916b460e1b915d1a3aa32b3691da67b753f652b.zip |
[svn]
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8255 by aaron @ 2/23/2009 4:16 AM
Diffstat (limited to 'expo/views_logbooks.py')
-rw-r--r-- | expo/views_logbooks.py | 13 |
1 files changed, 12 insertions, 1 deletions
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):
|