1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- # $Id: htmltemplate.py,v 1.33 2001-10-23 01:00:18 richard Exp $
18+ # $Id: htmltemplate.py,v 1.34 2001-10-23 22:56:36 richard Exp $
1919
2020import os , re , StringIO , urllib , cgi , errno
2121
@@ -487,18 +487,6 @@ def render(self, filterspec={}, filter=[], columns=[], sort=[], group=[],
487487 filter_template = None
488488 all_filters = []
489489
490- # display the filter section
491- if (hasattr (self .client , 'FILTER_POSITION' ) and
492- self .client .FILTER_POSITION in ('top and bottom' , 'top' )):
493- w ('<form>\n ' )
494- self .filter_section (filter_template , filter , columns , group ,
495- all_filters , all_columns , show_display_form , show_customization )
496- w ('</form>\n ' )
497-
498- # make sure that the sorting doesn't get lost either
499- if sort :
500- w ('<input type="hidden" name=":sort" value="%s">' % ',' .join (sort ))
501-
502490 # XXX deviate from spec here ...
503491 # load the index section template and figure the default columns from it
504492 template = open (os .path .join (self .templates ,
@@ -516,6 +504,18 @@ def render(self, filterspec={}, filter=[], columns=[], sort=[], group=[],
516504 l .append (name )
517505 columns = l
518506
507+ # display the filter section
508+ if (hasattr (self .client , 'FILTER_POSITION' ) and
509+ self .client .FILTER_POSITION in ('top and bottom' , 'top' )):
510+ w ('<form>\n ' )
511+ self .filter_section (filter_template , filter , columns , group ,
512+ all_filters , all_columns , show_display_form , show_customization )
513+ w ('</form>\n ' )
514+
515+ # make sure that the sorting doesn't get lost either
516+ if sort :
517+ w ('<input type="hidden" name=":sort" value="%s">' % ',' .join (sort ))
518+
519519 # now display the index section
520520 w ('<table width=100% border=0 cellspacing=0 cellpadding=2>\n ' )
521521 w ('<tr class="list-header">\n ' )
@@ -827,6 +827,13 @@ def render(self, form):
827827
828828#
829829# $Log: not supported by cvs2svn $
830+ # Revision 1.33 2001/10/23 01:00:18 richard
831+ # Re-enabled login and registration access after lopping them off via
832+ # disabling access for anonymous users.
833+ # Major re-org of the htmltemplate code, cleaning it up significantly. Fixed
834+ # a couple of bugs while I was there. Probably introduced a couple, but
835+ # things seem to work OK at the moment.
836+ #
830837# Revision 1.32 2001/10/22 03:25:01 richard
831838# Added configuration for:
832839# . anonymous user access and registration (deny/allow)
0 commit comments