|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
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 $ |
19 | 19 |
|
20 | 20 | import os, re, StringIO, urllib, cgi, errno |
21 | 21 |
|
@@ -526,11 +526,12 @@ def render(self, filterspec={}, filter=[], columns=[], sort=[], group=[], |
526 | 526 | w('<form action="index">\n') |
527 | 527 | self.filter_section(filter_template, filter, columns, group, |
528 | 528 | 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)) |
529 | 533 | w('</form>\n') |
530 | 534 |
|
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)) |
534 | 535 |
|
535 | 536 | # now display the index section |
536 | 537 | w('<table width=100% border=0 cellspacing=0 cellpadding=2>\n') |
@@ -606,6 +607,10 @@ def render(self, filterspec={}, filter=[], columns=[], sort=[], group=[], |
606 | 607 | w('<form action="index">\n') |
607 | 608 | self.filter_section(filter_template, filter, columns, group, |
608 | 609 | 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)) |
609 | 614 | w('</form>\n') |
610 | 615 |
|
611 | 616 |
|
@@ -843,6 +848,10 @@ def render(self, form): |
843 | 848 |
|
844 | 849 | # |
845 | 850 | # $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 | +# |
846 | 855 | # Revision 1.37 2001/10/31 06:24:35 richard |
847 | 856 | # Added do_stext to htmltemplate, thanks Brad Clements. |
848 | 857 | # |
|
0 commit comments