|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
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 $ |
19 | 19 |
|
20 | 20 | __doc__ = """ |
21 | 21 | Extending hyperdb with types specific to issue-tracking. |
@@ -439,7 +439,6 @@ def generateChangeNote(self, nodeid, newvalues): |
439 | 439 | changed[key] = new_value |
440 | 440 |
|
441 | 441 | # list the changes |
442 | | - m = ['','----------'] |
443 | 442 | for propname, value in changed.items(): |
444 | 443 | prop = cl.properties[propname] |
445 | 444 | oldvalue = cl.get(nodeid, propname, None) |
@@ -484,10 +483,17 @@ def generateChangeNote(self, nodeid, newvalues): |
484 | 483 | if l: |
485 | 484 | change += ' -%s'%(', '.join(l)) |
486 | 485 | m.append('%s: %s'%(propname, change)) |
| 486 | + if m: |
| 487 | + m.insert(0, '') |
| 488 | + m.insert(0, '----------') |
487 | 489 | return '\n'.join(m) |
488 | 490 |
|
489 | 491 | # |
490 | 492 | # $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 | +# |
491 | 497 | # Revision 1.25 2001/11/30 20:28:10 rochecompaan |
492 | 498 | # Property changes are now completely traceable, whether changes are |
493 | 499 | # made through the web or by email |
|
0 commit comments