|
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.31 2001-10-21 07:26:35 richard Exp $ |
| 18 | +# $Id: htmltemplate.py,v 1.32 2001-10-22 03:25:01 richard Exp $ |
19 | 19 |
|
20 | 20 | import os, re, StringIO, urllib, cgi, errno |
21 | 21 |
|
@@ -566,8 +566,9 @@ def index(client, templates, db, classname, filterspec={}, filter=[], |
566 | 566 | columns = l |
567 | 567 |
|
568 | 568 | # display the filter section |
569 | | - filter_section(w, cl, filter, columns, group, all_filters, all_columns, |
570 | | - show_display_form, show_customization) |
| 569 | + if hasattr(client, 'FILTER_POSITION') and client.FILTER_POSITION in ('top and bottom', 'top'): |
| 570 | + filter_section(w, cl, filter, columns, group, all_filters, all_columns, |
| 571 | + show_display_form, show_customization) |
571 | 572 |
|
572 | 573 | # now display the index section |
573 | 574 | w('<table width=100% border=0 cellspacing=0 cellpadding=2>\n') |
@@ -637,6 +638,11 @@ def index(client, templates, db, classname, filterspec={}, filter=[], |
637 | 638 |
|
638 | 639 | w('</table>') |
639 | 640 |
|
| 641 | + # display the filter section |
| 642 | + if hasattr(client, 'FILTER_POSITION') and client.FILTER_POSITION in ('top and bottom', 'bottom'): |
| 643 | + filter_section(w, cl, filter, columns, group, all_filters, all_columns, |
| 644 | + show_display_form, show_customization) |
| 645 | + |
640 | 646 |
|
641 | 647 | def filter_section(w, cl, filter, columns, group, all_filters, all_columns, |
642 | 648 | show_display_form, show_customization): |
@@ -833,6 +839,11 @@ def newitem(client, templates, db, classname, form, replace=re.compile( |
833 | 839 |
|
834 | 840 | # |
835 | 841 | # $Log: not supported by cvs2svn $ |
| 842 | +# Revision 1.31 2001/10/21 07:26:35 richard |
| 843 | +# feature #473127: Filenames. I modified the file.index and htmltemplate |
| 844 | +# source so that the filename is used in the link and the creation |
| 845 | +# information is displayed. |
| 846 | +# |
836 | 847 | # Revision 1.30 2001/10/21 04:44:50 richard |
837 | 848 | # bug #473124: UI inconsistency with Link fields. |
838 | 849 | # This also prompted me to fix a fairly long-standing usability issue - |
|
0 commit comments