diff roundup/htmltemplate.py @ 244:6bf584784e31

Fixed missing import in mailgw :(
author Richard Jones <richard@users.sourceforge.net>
date Thu, 30 Aug 2001 06:01:17 +0000
parents afd428ba6523
children 8a0d548c07a1
line wrap: on
line diff
--- a/roundup/htmltemplate.py	Wed Aug 29 06:23:59 2001 +0000
+++ b/roundup/htmltemplate.py	Thu Aug 30 06:01:17 2001 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: htmltemplate.py,v 1.21 2001-08-16 07:34:59 richard Exp $
+# $Id: htmltemplate.py,v 1.22 2001-08-30 06:01:17 richard Exp $
 
 import os, re, StringIO, urllib, cgi, errno
 
@@ -328,13 +328,14 @@
     ''' list the items specified by property using the standard index for
         the class
     '''
-    def __call__(self, property, **args):
+    def __call__(self, property, reverse=0):
         propclass = self.properties[property]
         if isinstance(not propclass, hyperdb.Multilink):
             return '[List: not a Multilink]'
         fp = StringIO.StringIO()
-        args['show_display_form'] = 0
         value = self.cl.get(self.nodeid, property)
+        if reverse:
+            value.reverse()
         # TODO: really not happy with the way templates is passed on here
         index(fp, self.templates, self.db, propclass.classname, nodeids=value,
             show_display_form=0)
@@ -512,10 +513,10 @@
         if show_display_form:
             anchor = "%s?%s"%(classname, sortby(name, columns, filter,
                 sort, group, filterspec))
-            w('<td><span class="list-item"><a href="%s">%s</a></span></td>\n'%(
+            w('<td><span class="list-header"><a href="%s">%s</a></span></td>\n'%(
                 anchor, cname))
         else:
-            w('<td><span class="list-item">%s</span></td>\n'%cname)
+            w('<td><span class="list-header">%s</span></td>\n'%cname)
     w('</tr>\n')
 
     # this stuff is used for group headings - optimise the group names
@@ -742,6 +743,9 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.21  2001/08/16 07:34:59  richard
+# better CGI text searching - but hidden filter fields are disappearing...
+#
 # Revision 1.20  2001/08/15 23:43:18  richard
 # Fixed some isFooTypes that I missed.
 # Refactored some code in the CGI code.

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