comparison roundup/roundupdb.py @ 667:52ca0ae46044

Faster, easier, less mess ;)
author Richard Jones <richard@users.sourceforge.net>
date Tue, 19 Mar 2002 06:41:49 +0000
parents 9382ad731c1c
children 5b23ff865f3a 0521ddc7bb31
comparison
equal deleted inserted replaced
666:d1567c2433c4 667:52ca0ae46044
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: roundupdb.py,v 1.48 2002-03-18 18:32:00 rochecompaan Exp $ 18 # $Id: roundupdb.py,v 1.49 2002-03-19 06:41:49 richard Exp $
19 19
20 __doc__ = """ 20 __doc__ = """
21 Extending hyperdb with types specific to issue-tracking. 21 Extending hyperdb with types specific to issue-tracking.
22 """ 22 """
23 23
400 400
401 # encode the content as quoted-printable 401 # encode the content as quoted-printable
402 content = cStringIO.StringIO('\n'.join(m)) 402 content = cStringIO.StringIO('\n'.join(m))
403 content_encoded = cStringIO.StringIO() 403 content_encoded = cStringIO.StringIO()
404 quopri.encode(content, content_encoded, 0) 404 quopri.encode(content, content_encoded, 0)
405 content_encoded.seek(0) 405 content_encoded = content_encoded.getvalue()
406 content_encoded = content_encoded.read()
407 406
408 # get the files for this message 407 # get the files for this message
409 message_files = messages.get(msgid, 'files') 408 message_files = messages.get(msgid, 'files')
410 409
411 # create the message 410 # create the message
603 m.insert(0, '') 602 m.insert(0, '')
604 return '\n'.join(m) 603 return '\n'.join(m)
605 604
606 # 605 #
607 # $Log: not supported by cvs2svn $ 606 # $Log: not supported by cvs2svn $
607 # Revision 1.48 2002/03/18 18:32:00 rochecompaan
608 # All messages sent to the nosy list are now encoded as quoted-printable.
609 #
608 # Revision 1.47 2002/02/27 03:16:02 richard 610 # Revision 1.47 2002/02/27 03:16:02 richard
609 # Fixed a couple of dodgy bits found by pychekcer. 611 # Fixed a couple of dodgy bits found by pychekcer.
610 # 612 #
611 # Revision 1.46 2002/02/25 14:22:59 grubert 613 # Revision 1.46 2002/02/25 14:22:59 grubert
612 # . roundup db: catch only IOError in getfile. 614 # . roundup db: catch only IOError in getfile.

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