From acb69fb9ab2feeed780cfe34d2d2cd27490213f1 Mon Sep 17 00:00:00 2001 From: rochecompaan Date: Mon, 21 Jan 2002 09:55:14 +0000 Subject: [PATCH] Properties in change note are now sorted git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@571 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 1 + roundup/roundupdb.py | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index e88610f..0334d9a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -6,6 +6,7 @@ Feature: . much nicer history display (actualy real handling of property types etc) . journal entries for link and mutlilink properties can be switched on or off + . properties in change note are now sorted Fixed: . handle attachments with no name (eg tnef) diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py index c2aeafe..5f4c90a 100644 --- a/roundup/roundupdb.py +++ b/roundup/roundupdb.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundupdb.py,v 1.41 2002-01-15 00:12:40 richard Exp $ +# $Id: roundupdb.py,v 1.42 2002-01-21 09:55:14 rochecompaan Exp $ __doc__ = """ Extending hyperdb with types specific to issue-tracking. @@ -461,13 +461,13 @@ class IssueClass(Class): # list the values m = [] - l = props.items() - l.sort() + l = props.items() + l.sort() for propname, prop in l: value = cl.get(nodeid, propname, None) - # skip boring entries - if not value: - continue + # skip boring entries + if not value: + continue if isinstance(prop, hyperdb.Link): link = self.db.classes[prop.classname] if value: @@ -514,7 +514,9 @@ class IssueClass(Class): # list the changes m = [] - for propname, oldvalue in changed.items(): + l = changed.items() + l.sort() + for propname, oldvalue in l: prop = cl.properties[propname] value = cl.get(nodeid, propname, None) if isinstance(prop, hyperdb.Link): @@ -566,6 +568,9 @@ class IssueClass(Class): # # $Log: not supported by cvs2svn $ +# Revision 1.41 2002/01/15 00:12:40 richard +# #503340 ] creating issue with [asignedto=p.ohly] +# # Revision 1.40 2002/01/14 22:21:38 richard # #503353 ] setting properties in initial email # -- 2.30.2