summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5130f67)
raw | patch | inline | side by side (parent: 5130f67)
author | rochecompaan <rochecompaan@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 24 Apr 2002 08:34:35 +0000 (08:34 +0000) | ||
committer | rochecompaan <rochecompaan@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 24 Apr 2002 08:34:35 +0000 (08:34 +0000) |
the nodes that are actually linked to in the "field" template
function. This adds about 20+ seconds in the display of an issue if
your database has a 1000 or more issue in it.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@710 57a73879-2fb5-44c3-a270-3262357dd7e2
function. This adds about 20+ seconds in the display of an issue if
your database has a 1000 or more issue in it.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@710 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/htmltemplate.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 1650c3991563fac20f09405b3bb33708be2bfdcf..959ea212f9a4c2c2f71e9eacb825de0c9e666808 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
. stop sending blank (whitespace-only) notes
. cleanup of serialisation for database storage
. node ids are now generated from a lockable store - no more race conditions
+ . sorting was applied to all nodes of the MultiLink class instead of
+ to the nodes that are actually linked to in the "field" template
+ function. This adds about 20+ seconds in the display of an issue if
+ your database has a 1000 or more issues in it.
2002-03-25 - 0.4.1
index 5fd46f59bba624c81818c16c6ae909f84af4327c..e04cb86d9dbcef9f7b4208332dcadef718f2ec1a 100644 (file)
--- a/roundup/htmltemplate.py
+++ b/roundup/htmltemplate.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: htmltemplate.py,v 1.87 2002-04-03 06:12:46 richard Exp $
+# $Id: htmltemplate.py,v 1.88 2002-04-24 08:34:35 rochecompaan Exp $
__doc__ = """
Template engine.
elif isinstance(propclass, hyperdb.Multilink):
sortfunc = self.make_sort_function(propclass.classname)
linkcl = self.db.classes[propclass.classname]
- list = linkcl.list()
- list.sort(sortfunc)
- l = []
+ if value:
+ value.sort(sortfunc)
# map the id to the label property
if not showid:
k = linkcl.labelprop()
#
# $Log: not supported by cvs2svn $
+# Revision 1.87 2002/04/03 06:12:46 richard
+# Fix for date properties as labels.
+#
# Revision 1.86 2002/04/03 05:54:31 richard
# Fixed serialisation problem by moving the serialisation step out of the
# hyperdb.Class (get, set) into the hyperdb.Database.