comparison roundup/mailgw.py @ 464:29f5ac8a0d2b

Fixed bugs: . Fixed file creation and retrieval in same transaction in anydbm backend . Cgi interface now renders new issue after issue creation . Could not set issue status to resolved through cgi interface . Mail gateway was changing status back to 'chatting' if status was omitted as an argument
author Roche Compaan <rochecompaan@users.sourceforge.net>
date Tue, 18 Dec 2001 15:30:34 +0000
parents eed9359b448d
children 103f521810f7
comparison
equal deleted inserted replaced
463:045f7fcc2c0f 464:29f5ac8a0d2b
71 set() method to add the message to the item's spool; in the second case we 71 set() method to add the message to the item's spool; in the second case we
72 are calling the create() method to create a new node). If an auditor raises 72 are calling the create() method to create a new node). If an auditor raises
73 an exception, the original message is bounced back to the sender with the 73 an exception, the original message is bounced back to the sender with the
74 explanatory message given in the exception. 74 explanatory message given in the exception.
75 75
76 $Id: mailgw.py,v 1.43 2001-12-15 19:39:01 rochecompaan Exp $ 76 $Id: mailgw.py,v 1.44 2001-12-18 15:30:34 rochecompaan Exp $
77 ''' 77 '''
78 78
79 79
80 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri 80 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
81 import traceback, MimeWriter 81 import traceback, MimeWriter
486 resolved_id = self.db.status.lookup('resolved') 486 resolved_id = self.db.status.lookup('resolved')
487 chatting_id = self.db.status.lookup('chatting') 487 chatting_id = self.db.status.lookup('chatting')
488 except KeyError: 488 except KeyError:
489 pass 489 pass
490 else: 490 else:
491 if (not props.has_key('status') or 491 if (not props.has_key('status') and
492 props['status'] == unread_id or 492 properties['status'] == unread_id or
493 props['status'] == resolved_id): 493 properties['status'] == resolved_id):
494 props['status'] = chatting_id 494 props['status'] = chatting_id
495 495
496 # add nosy in arguments to issue's nosy list 496 # add nosy in arguments to issue's nosy list
497 if not props.has_key('nosy'): props['nosy'] = [] 497 if not props.has_key('nosy'): props['nosy'] = []
498 n = {} 498 n = {}
636 l.append(section) 636 l.append(section)
637 return summary, '\n\n'.join(l) 637 return summary, '\n\n'.join(l)
638 638
639 # 639 #
640 # $Log: not supported by cvs2svn $ 640 # $Log: not supported by cvs2svn $
641 # Revision 1.43 2001/12/15 19:39:01 rochecompaan
642 # Oops.
643 #
641 # Revision 1.42 2001/12/15 19:24:39 rochecompaan 644 # Revision 1.42 2001/12/15 19:24:39 rochecompaan
642 # . Modified cgi interface to change properties only once all changes are 645 # . Modified cgi interface to change properties only once all changes are
643 # collected, files created and messages generated. 646 # collected, files created and messages generated.
644 # . Moved generation of change note to nosyreactors. 647 # . Moved generation of change note to nosyreactors.
645 # . We now check for changes to "assignedto" to ensure it's added to the 648 # . We now check for changes to "assignedto" to ensure it's added to the

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