elections2/lib/admin.py | 1 +
elections2/lib/vote.py | 1 +
elections2/templates/index.html | 4 +++-
3 files changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 5253f6cf3eb9df3d365e9207c797ac9870f196ff
Author: Kamal Ejaz <a2ninek(a)yahoo.com>
Date: Thu Aug 18 21:33:00 2011 +0500
Add lines in Admin and vote lib
diff --git a/elections2/lib/admin.py b/elections2/lib/admin.py
index 19de935..c6675de 100644
--- a/elections2/lib/admin.py
+++ b/elections2/lib/admin.py
@@ -29,6 +29,7 @@
#from turbogears import controllers, expose, flash, redirect, config
#from turbogears import identity
from tg import expose, flash, require, url, request, redirect
+from repoze.what import predicates
from elections2.lib.base import BaseController
from fedora.client import AuthError, AppError
from elections2 import model
diff --git a/elections2/lib/vote.py b/elections2/lib/vote.py
index 359e474..e5c3547 100644
--- a/elections2/lib/vote.py
+++ b/elections2/lib/vote.py
@@ -29,6 +29,7 @@
#from turbogears import controllers, expose, flash, redirect, config
#from turbogears import identity
from tg import expose, flash, require, url, request, redirect
+from repoze.what import predicates
from elections2.lib.base import BaseController
from elections2 import model
diff --git a/elections2/templates/index.html b/elections2/templates/index.html
index 09176d5..eeadcc1 100644
--- a/elections2/templates/index.html
+++ b/elections2/templates/index.html
@@ -61,7 +61,7 @@
</tr>
</table>
</py:if>
-
+
<py:if test="len(past)">
<h2>Past Elections</h2>
<table>
@@ -73,6 +73,7 @@
<th></th>
</tr>
<tr py:for="election in past">
+
<td>${election.shortdesc}</td>
<td>${election.start_date}</td>
<td>${election.end_date}</td>
@@ -103,6 +104,7 @@
</py:otherwise>
</py:choose>
</td>
+
</tr>
</table>
</py:if>
Show replies by date