Skip to content

Commit aee770b

Browse files
author
Richard Jones
committed
htmltemplate list() wasn't sorting...
1 parent 8dea923 commit aee770b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Fixed:
2222
. fixed status changes in mail gateway (eg. unread -> chatting)
2323
. we'll actually distribute the frontends directory now, as advertised...
2424
. handle stripping of "AW:" from subject line
25+
. htmltemplate list() wasn't sorting...
2526

2627

2728
2002-01-16 - 0.4.0b2

roundup/htmltemplate.py

Lines changed: 5 additions & 1 deletion
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.67 2002-01-22 22:46:22 richard Exp $
18+
# $Id: htmltemplate.py,v 1.68 2002-01-22 22:55:28 richard Exp $
1919

2020
__doc__ = """
2121
Template engine.
@@ -468,6 +468,7 @@ def do_list(self, property, reverse=0):
468468
if not isinstance(propcl, hyperdb.Multilink):
469469
return _('[List: not a Multilink]')
470470
value = self.cl.get(self.nodeid, property)
471+
value.sort()
471472
if reverse:
472473
value.reverse()
473474

@@ -1047,6 +1048,9 @@ def render(self, form):
10471048

10481049
#
10491050
# $Log: not supported by cvs2svn $
1051+
# Revision 1.67 2002/01/22 22:46:22 richard
1052+
# more htmltemplate cleanups and unit tests
1053+
#
10501054
# Revision 1.66 2002/01/22 06:35:40 richard
10511055
# more htmltemplate tests and cleanup
10521056
#

0 commit comments

Comments
 (0)