comparison roundup/htmltemplate.py @ 350:e8d244a98ffd

Ahah! Fixed the lynx problem - there was a hidden input field misplaced.
author Richard Jones <richard@users.sourceforge.net>
date Sat, 03 Nov 2001 01:43:47 +0000
parents 0b7d62e414b6
children 6932067a8f31
comparison
equal deleted inserted replaced
349:688dd65c0e75 350:e8d244a98ffd
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 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 import os, re, StringIO, urllib, cgi, errno 20 import os, re, StringIO, urllib, cgi, errno
21 21
22 import hyperdb, date, password 22 import hyperdb, date, password
23 23
524 if (hasattr(self.client, 'FILTER_POSITION') and 524 if (hasattr(self.client, 'FILTER_POSITION') and
525 self.client.FILTER_POSITION in ('top and bottom', 'top')): 525 self.client.FILTER_POSITION in ('top and bottom', 'top')):
526 w('<form action="index">\n') 526 w('<form action="index">\n')
527 self.filter_section(filter_template, filter, columns, group, 527 self.filter_section(filter_template, filter, columns, group,
528 all_filters, all_columns, show_display_form, show_customization) 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 w('</form>\n') 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 # now display the index section 536 # now display the index section
536 w('<table width=100% border=0 cellspacing=0 cellpadding=2>\n') 537 w('<table width=100% border=0 cellspacing=0 cellpadding=2>\n')
537 w('<tr class="list-header">\n') 538 w('<tr class="list-header">\n')
538 for name in columns: 539 for name in columns:
604 if (hasattr(self.client, 'FILTER_POSITION') and 605 if (hasattr(self.client, 'FILTER_POSITION') and
605 self.client.FILTER_POSITION in ('top and bottom', 'bottom')): 606 self.client.FILTER_POSITION in ('top and bottom', 'bottom')):
606 w('<form action="index">\n') 607 w('<form action="index">\n')
607 self.filter_section(filter_template, filter, columns, group, 608 self.filter_section(filter_template, filter, columns, group,
608 all_filters, all_columns, show_display_form, show_customization) 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 w('</form>\n') 614 w('</form>\n')
610 615
611 616
612 def filter_section(self, template, filter, columns, group, all_filters, 617 def filter_section(self, template, filter, columns, group, all_filters,
613 all_columns, show_display_form, show_customization): 618 all_columns, show_display_form, show_customization):
841 w(replace.go(s)) 846 w(replace.go(s))
842 w('</form>') 847 w('</form>')
843 848
844 # 849 #
845 # $Log: not supported by cvs2svn $ 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 # Revision 1.37 2001/10/31 06:24:35 richard 855 # Revision 1.37 2001/10/31 06:24:35 richard
847 # Added do_stext to htmltemplate, thanks Brad Clements. 856 # Added do_stext to htmltemplate, thanks Brad Clements.
848 # 857 #
849 # Revision 1.36 2001/10/28 22:51:38 richard 858 # Revision 1.36 2001/10/28 22:51:38 richard
850 # Fixed ENOENT/WindowsError thing, thanks Juergen Hermann 859 # Fixed ENOENT/WindowsError thing, thanks Juergen Hermann

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