Skip to content

Commit e3e86bd

Browse files
author
Richard Jones
committed
Ahah! Fixed the lynx problem - there was a hidden input field misplaced.
1 parent fd23112 commit e3e86bd

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

roundup/htmltemplate.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: htmltemplate.py,v 1.38 2001-10-31 06:58:51 richard Exp $
18+
# $Id: htmltemplate.py,v 1.39 2001-11-03 01:43:47 richard Exp $
1919

2020
import os, re, StringIO, urllib, cgi, errno
2121

@@ -526,11 +526,12 @@ def render(self, filterspec={}, filter=[], columns=[], sort=[], group=[],
526526
w('<form action="index">\n')
527527
self.filter_section(filter_template, filter, columns, group,
528528
all_filters, all_columns, show_display_form, show_customization)
529+
# make sure that the sorting doesn't get lost either
530+
if sort:
531+
w('<input type="hidden" name=":sort" value="%s">'%
532+
','.join(sort))
529533
w('</form>\n')
530534

531-
# make sure that the sorting doesn't get lost either
532-
if sort:
533-
w('<input type="hidden" name=":sort" value="%s">'%','.join(sort))
534535

535536
# now display the index section
536537
w('<table width=100% border=0 cellspacing=0 cellpadding=2>\n')
@@ -606,6 +607,10 @@ def render(self, filterspec={}, filter=[], columns=[], sort=[], group=[],
606607
w('<form action="index">\n')
607608
self.filter_section(filter_template, filter, columns, group,
608609
all_filters, all_columns, show_display_form, show_customization)
610+
# make sure that the sorting doesn't get lost either
611+
if sort:
612+
w('<input type="hidden" name=":sort" value="%s">'%
613+
','.join(sort))
609614
w('</form>\n')
610615

611616

@@ -843,6 +848,10 @@ def render(self, form):
843848

844849
#
845850
# $Log: not supported by cvs2svn $
851+
# Revision 1.38 2001/10/31 06:58:51 richard
852+
# Added the wrap="hard" attribute to the textarea of the note field so the
853+
# messages wrap sanely.
854+
#
846855
# Revision 1.37 2001/10/31 06:24:35 richard
847856
# Added do_stext to htmltemplate, thanks Brad Clements.
848857
#

0 commit comments

Comments
 (0)