[pirate-politics] r540 committed - forgot to change out to the new style.css try 2

2 views
Skip to first unread message

pirate-...@googlecode.com

unread,
Feb 7, 2011, 2:15:23 AM2/7/11
to pirate-poli...@googlegroups.com
Revision: 540
Author: fragro
Date: Sun Feb 6 23:09:47 2011
Log: forgot to change out to the new style.css try 2
http://code.google.com/p/pirate-politics/source/detail?r=540

Modified:
/trunk/pirate-politics/new_templates/base.html
/trunk/pirate-politics/pirate_issues/templatetags/issuetags.py
/trunk/pirate-politics/pirate_issues/templatetags/solutiontags.py

=======================================
--- /trunk/pirate-politics/new_templates/base.html Sun Feb 6 23:05:17 2011
+++ /trunk/pirate-politics/new_templates/base.html Sun Feb 6 23:09:47 2011
@@ -16,7 +16,7 @@

<link rel="shortcut icon" href="/static/favicon.ico" />

- <link rel="stylesheet" type="text/css" href="/static/style2.css" />
+ <link rel="stylesheet" type="text/css" href="/static/style.css" />

<title>{{request.path|cut:"/"|cut:".html"|capfirst}} -
Nonrel-testapp</title>

=======================================
--- /trunk/pirate-politics/pirate_issues/templatetags/issuetags.py Sun Feb
6 23:05:17 2011
+++ /trunk/pirate-politics/pirate_issues/templatetags/issuetags.py Sun Feb
6 23:09:47 2011
@@ -231,7 +231,7 @@
issue_list = issue_list.order_by('-submit_date')

try: namespace['count'] = issue_list.count()
- except: pass #issue_list is probably empty
+ except: namespace['count'] = 0

if adjust_for_range: #filter for rng
issue_list = issue_list[rng[0]:rng[1]]
=======================================
--- /trunk/pirate-politics/pirate_issues/templatetags/solutiontags.py Sun
Feb 6 23:05:17 2011
+++ /trunk/pirate-politics/pirate_issues/templatetags/solutiontags.py Sun
Feb 6 23:09:47 2011
@@ -129,7 +129,9 @@
# if i.content_object.issue == issue:
solution_list.append(i.content_object)
# else: solution_list.append(i.content_object)

-
+ try: namespace['count'] = solution_list.count()
+ except: namespace['count'] = 0
+
if adjust_for_range: #filter for rng
solution_list = solution_list[rng[0]:rng[1]]

Reply all
Reply to author
Forward
0 new messages