Skip to content

Commit 6d8250b

Browse files
author
Richard Jones
committed
Bugfix in filter "widget" placement, thanks Roch'e
1 parent 6eb4e94 commit 6d8250b

File tree

2 files changed

+25
-19
lines changed

2 files changed

+25
-19
lines changed

doc/announcement.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
Roundup 0.3.0pre2 - an issue tracking system
1+
Roundup 0.3.0pre3 - an issue tracking system
22

33
**PREVIEW RELEASE**
44

5-
This release is in use by Bizar Software, but has had little testing beyond
6-
that. It contains several new features which will require migration, so
5+
This release contains several new features which will require migration, so
76
we're releasing this preview for the bleeding-edge users.
87

98
**NOTE** existing users _must_ read the MIGRATION.txt that accompanies the
@@ -13,13 +12,13 @@ This release contains a bunch of changes and bug fixes. See the CHANGES
1312
file for details.
1413

1514
Source and documentation is available at the website:
16-
http://roundup.sourceforge.net/
15+
http://roundup.sourceforge.net/
1716

1817
Release Info (via download page):
19-
https://sourceforge.net/project/showfiles.php?group_id=31577
18+
http://sourceforge.net/project/showfiles.php?group_id=31577
2019

2120
Mailing lists - the place to ask questions:
22-
https://sourceforge.net/mail/?group_id=31577
21+
http://sourceforge.net/mail/?group_id=31577
2322

2423

2524

roundup/htmltemplate.py

Lines changed: 20 additions & 13 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.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

2020
import 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

Comments
 (0)