comparison roundup/roundupdb.py @ 1250:deab62016de7

https URLs from config now recognised as valid [SF#619829]
author Richard Jones <richard@users.sourceforge.net>
date Tue, 08 Oct 2002 03:27:24 +0000
parents 8e318dfaf479
children 209a47ede743
comparison
equal deleted inserted replaced
1249:6c24a86a12ae 1250:deab62016de7
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.69 2002-09-20 01:20:31 richard Exp $ 18 # $Id: roundupdb.py,v 1.70 2002-10-08 03:27:24 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
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 # simplistic check to see if the url is valid, 290 # simplistic check to see if the url is valid,
291 # then append a trailing slash if it is missing 291 # then append a trailing slash if it is missing
292 base = self.db.config.TRACKER_WEB 292 base = self.db.config.TRACKER_WEB
293 if not isinstance(base , type('')) or not base.startswith('http://'): 293 if (not isinstance(base , type('')) or
294 not base.startswith('http://'):
295 not base.startswith('https://')):
294 base = "Configuration Error: TRACKER_WEB isn't a " \ 296 base = "Configuration Error: TRACKER_WEB isn't a " \
295 "fully-qualified URL" 297 "fully-qualified URL"
296 elif base[-1] != '/' : 298 elif base[-1] != '/' :
297 base += '/' 299 base += '/'
298 web = base + self.classname + nodeid 300 web = base + self.classname + nodeid

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