diff template.py @ 3:97559f7bae2e

Bug fixes: . Fixed bug in re generation in the filter (I hadn't finished the code ;) . Added TODO as a priority (between bug and usability) . Fixed handling of None String property in grouped list headings
author Richard Jones <richard@users.sourceforge.net>
date Thu, 19 Jul 2001 05:23:09 +0000
parents 5e92642cd1f8
children 72a0ba086b3e
line wrap: on
line diff
--- a/template.py	Thu Jul 19 03:12:56 2001 +0000
+++ b/template.py	Thu Jul 19 05:23:09 2001 +0000
@@ -506,7 +506,10 @@
                         for value in cl.get(nodeid, name):
                             l.append(group_cl.get(value, key))
                     else:
-                        l.append(cl.get(nodeid, name))
+                        value = cl.get(nodeid, name)
+                        if value is None:
+                            value = '[empty %s]'%name
+                        l.append(value)
                 w('<tr class="list-header">'
                   '<td align=left colspan=%s><strong>%s</strong></td></tr>'%(
                     len(columns), ', '.join(l)))

Roundup Issue Tracker: http://roundup-tracker.org/