Skip to content

Commit fb0568b

Browse files
author
Richard Jones
committed
namespace clobberation
1 parent ff2f531 commit fb0568b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

roundup/roundupdb.py

Lines changed: 7 additions & 4 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.37 2002-01-08 04:12:05 richard Exp $
18+
# $Id: roundupdb.py,v 1.38 2002-01-10 05:57:45 richard Exp $
1919

2020
__doc__ = """
2121
Extending hyperdb with types specific to issue-tracking.
@@ -378,7 +378,7 @@ def sendmessage(self, nodeid, msgid, change_note):
378378
m.append(self.email_signature(nodeid, msgid))
379379

380380
# get the files for this message
381-
files = messages.get(msgid, 'files')
381+
message_files = messages.get(msgid, 'files')
382382

383383
# create the message
384384
message = cStringIO.StringIO()
@@ -395,12 +395,12 @@ def sendmessage(self, nodeid, msgid, change_note):
395395
writer.addheader('In-Reply-To', inreplyto)
396396

397397
# attach files
398-
if files:
398+
if message_files:
399399
part = writer.startmultipartbody('mixed')
400400
part = writer.nextpart()
401401
body = part.startbody('text/plain')
402402
body.write('\n'.join(m))
403-
for fileid in files:
403+
for fileid in message_files:
404404
name = files.get(fileid, 'name')
405405
mime_type = files.get(fileid, 'type')
406406
content = files.get(fileid, 'content')
@@ -530,6 +530,9 @@ def generateChangeNote(self, nodeid, oldvalues):
530530

531531
#
532532
# $Log: not supported by cvs2svn $
533+
# Revision 1.37 2002/01/08 04:12:05 richard
534+
# Changed message-id format to "<%s.%s.%s%s@%s>" so it complies with RFC822
535+
#
533536
# Revision 1.36 2002/01/02 02:31:38 richard
534537
# Sorry for the huge checkin message - I was only intending to implement #496356
535538
# but I found a number of places where things had been broken by transactions:

0 commit comments

Comments
 (0)