comparison roundup/roundupdb.py @ 1112:70f187da3cf2

remove hard-coded "issue"
author Richard Jones <richard@users.sourceforge.net>
date Wed, 11 Sep 2002 02:20:35 +0000
parents db787cef1385
children 8e318dfaf479
comparison
equal deleted inserted replaced
1111:a7a1f6098263 1112:70f187da3cf2
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.67 2002-09-10 12:44:42 richard Exp $ 18 # $Id: roundupdb.py,v 1.68 2002-09-11 02:20:35 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
285 "Couldn't send confirmation email: %s"%value 285 "Couldn't send confirmation email: %s"%value
286 286
287 def email_signature(self, nodeid, msgid): 287 def email_signature(self, nodeid, msgid):
288 ''' Add a signature to the e-mail with some useful information 288 ''' Add a signature to the e-mail with some useful information
289 ''' 289 '''
290
291 # simplistic check to see if the url is valid, 290 # simplistic check to see if the url is valid,
292 # then append a trailing slash if it is missing 291 # then append a trailing slash if it is missing
293 base = self.db.config.TRACKER_WEB 292 base = self.db.config.TRACKER_WEB
294 if not isinstance(base , type('')) or not base.startswith('http://'): 293 if not isinstance(base , type('')) or not base.startswith('http://'):
295 base = "Configuration Error: TRACKER_WEB isn't a " \ 294 base = "Configuration Error: TRACKER_WEB isn't a " \
296 "fully-qualified URL" 295 "fully-qualified URL"
297 elif base[-1] != '/' : 296 elif base[-1] != '/' :
298 base += '/' 297 base += '/'
299 web = base + 'issue'+ nodeid 298 web = base + self.classname + nodeid
300 299
301 # ensure the email address is properly quoted 300 # ensure the email address is properly quoted
302 email = straddr((self.db.config.TRACKER_NAME, 301 email = straddr((self.db.config.TRACKER_NAME,
303 self.db.config.TRACKER_EMAIL)) 302 self.db.config.TRACKER_EMAIL))
304 303

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