comparison roundup/roundupdb.py @ 3958:642201ee1d75

paranoia from Toby Dickenson
author Richard Jones <richard@users.sourceforge.net>
date Tue, 08 Jan 2008 20:58:31 +0000
parents 76ee5c3d0ced
children 68accc7d4b69
comparison
equal deleted inserted replaced
3957:76ee5c3d0ced 3958:642201ee1d75
14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 # 18 #
19 # $Id: roundupdb.py,v 1.137 2008-01-08 20:56:23 richard Exp $ 19 # $Id: roundupdb.py,v 1.138 2008-01-08 20:58:31 richard Exp $
20 20
21 """Extending hyperdb with types specific to issue-tracking. 21 """Extending hyperdb with types specific to issue-tracking.
22 """ 22 """
23 __docformat__ = 'restructuredtext' 23 __docformat__ = 'restructuredtext'
24 24
422 # Default the reply to the first message 422 # Default the reply to the first message
423 msgs = self.get(nodeid, 'messages') 423 msgs = self.get(nodeid, 'messages')
424 # Assume messages are sorted by increasing message number here 424 # Assume messages are sorted by increasing message number here
425 if msgs[0] != nodeid: 425 if msgs[0] != nodeid:
426 inreplyto = messages.get(msgs[0], 'messageid') 426 inreplyto = messages.get(msgs[0], 'messageid')
427 writer.addheader('In-Reply-To', inreplyto) 427 if inreplyto:
428 writer.addheader('In-Reply-To', inreplyto)
428 429
429 # attach files 430 # attach files
430 if message_files: 431 if message_files:
431 part = writer.startmultipartbody('mixed') 432 part = writer.startmultipartbody('mixed')
432 part = writer.nextpart() 433 part = writer.nextpart()

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