Skip to content

Commit e0df0e6

Browse files
author
Richard Jones
committed
only insert the -------- change note marker if there is a change note
1 parent 2a1573e commit e0df0e6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

roundup/roundupdb.py

Lines changed: 8 additions & 2 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: roundupdb.py,v 1.26 2001-12-05 14:26:44 rochecompaan Exp $
18+
# $Id: roundupdb.py,v 1.27 2001-12-10 21:02:53 richard Exp $
1919

2020
__doc__ = """
2121
Extending hyperdb with types specific to issue-tracking.
@@ -439,7 +439,6 @@ def generateChangeNote(self, nodeid, newvalues):
439439
changed[key] = new_value
440440

441441
# list the changes
442-
m = ['','----------']
443442
for propname, value in changed.items():
444443
prop = cl.properties[propname]
445444
oldvalue = cl.get(nodeid, propname, None)
@@ -484,10 +483,17 @@ def generateChangeNote(self, nodeid, newvalues):
484483
if l:
485484
change += ' -%s'%(', '.join(l))
486485
m.append('%s: %s'%(propname, change))
486+
if m:
487+
m.insert(0, '')
488+
m.insert(0, '----------')
487489
return '\n'.join(m)
488490

489491
#
490492
# $Log: not supported by cvs2svn $
493+
# Revision 1.26 2001/12/05 14:26:44 rochecompaan
494+
# Removed generation of change note from "sendmessage" in roundupdb.py.
495+
# The change note is now generated when the message is created.
496+
#
491497
# Revision 1.25 2001/11/30 20:28:10 rochecompaan
492498
# Property changes are now completely traceable, whether changes are
493499
# made through the web or by email

0 commit comments

Comments
 (0)