changeset 439:6e27cb83aacb

only insert the -------- change note marker if there is a change note
author Richard Jones <richard@users.sourceforge.net>
date Mon, 10 Dec 2001 21:02:53 +0000
parents 9d97c1a4ddad
children de5bf4191f11
files roundup/roundupdb.py
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/roundupdb.py	Mon Dec 10 00:57:38 2001 +0000
+++ b/roundup/roundupdb.py	Mon Dec 10 21:02:53 2001 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: roundupdb.py,v 1.26 2001-12-05 14:26:44 rochecompaan Exp $
+# $Id: roundupdb.py,v 1.27 2001-12-10 21:02:53 richard Exp $
 
 __doc__ = """
 Extending hyperdb with types specific to issue-tracking.
@@ -439,7 +439,6 @@
                 changed[key] = new_value
 
         # list the changes
-        m = ['','----------']
         for propname, value in changed.items():
             prop = cl.properties[propname]
             oldvalue = cl.get(nodeid, propname, None)
@@ -484,10 +483,17 @@
                 if l:
                     change += ' -%s'%(', '.join(l))
             m.append('%s: %s'%(propname, change))
+        if m:
+            m.insert(0, '')
+            m.insert(0, '----------')
         return '\n'.join(m)
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.26  2001/12/05 14:26:44  rochecompaan
+# Removed generation of change note from "sendmessage" in roundupdb.py.
+# The change note is now generated when the message is created.
+#
 # Revision 1.25  2001/11/30 20:28:10  rochecompaan
 # Property changes are now completely traceable, whether changes are
 # made through the web or by email

Roundup Issue Tracker: http://roundup-tracker.org/