comparison roundup/roundupdb.py @ 414:fc6d03e9dbc1

couple of bugfixes from latest patch integration
author Richard Jones <richard@users.sourceforge.net>
date Tue, 27 Nov 2001 03:00:50 +0000
parents a6088556e9ba
children 26a4910ef80e
comparison
equal deleted inserted replaced
413:aafe6980123d 414:fc6d03e9dbc1
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.21 2001-11-26 22:55:56 richard Exp $ 18 # $Id: roundupdb.py,v 1.22 2001-11-27 03:00:50 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
408 408
409 def email_signature(self, nodeid, msgid): 409 def email_signature(self, nodeid, msgid):
410 ''' Add a signature to the e-mail with some useful information 410 ''' Add a signature to the e-mail with some useful information
411 ''' 411 '''
412 web = self.ISSUE_TRACKER_WEB + 'issue'+ nodeid 412 web = self.ISSUE_TRACKER_WEB + 'issue'+ nodeid
413 return '''%s 413 email = '"%s" <%s>'%(self.INSTANCE_NAME, self.ISSUE_TRACKER_EMAIL)
414 %s 414 line = '_' * max(len(web), len(email))
415 %s 415 return '%s\n%s\n%s\n%s'%(line, email, web, line)
416 %s
417 '''%('_'*len(web), self.INSTANCE_NAME, self.ISSUE_TRACKER_EMAIL, web,
418 '_'*len(web))
419 416
420 # 417 #
421 # $Log: not supported by cvs2svn $ 418 # $Log: not supported by cvs2svn $
419 # Revision 1.21 2001/11/26 22:55:56 richard
420 # Feature:
421 # . Added INSTANCE_NAME to configuration - used in web and email to identify
422 # the instance.
423 # . Added EMAIL_SIGNATURE_POSITION to indicate where to place the roundup
424 # signature info in e-mails.
425 # . Some more flexibility in the mail gateway and more error handling.
426 # . Login now takes you to the page you back to the were denied access to.
427 #
428 # Fixed:
429 # . Lots of bugs, thanks Roché and others on the devel mailing list!
430 #
422 # Revision 1.20 2001/11/25 10:11:14 jhermann 431 # Revision 1.20 2001/11/25 10:11:14 jhermann
423 # Typo fix 432 # Typo fix
424 # 433 #
425 # Revision 1.19 2001/11/22 15:46:42 jhermann 434 # Revision 1.19 2001/11/22 15:46:42 jhermann
426 # Added module docstrings to all modules. 435 # Added module docstrings to all modules.

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