Cleaned up display_url_list().

svn: r14749
This commit is contained in:
Rob G. Healey 2010-03-11 07:14:54 +00:00
parent 045d9542a7
commit 71a21b507e

View File

@ -1435,21 +1435,21 @@ class BasePage(object):
if not uri.startswith("mailto:"): if not uri.startswith("mailto:"):
list += Html("a",descr, href = 'mailto: %s' % uri) list += Html("a",descr, href = 'mailto: %s' % uri)
else: else:
list += Html("a", descr, href = "%s" % uri) list += Html("a", descr, href = uri)
# Web Site address # Web Site address
elif _type == UrlType.WEB_HOME: elif _type == UrlType.WEB_HOME:
if not uri.startswith("http://"): if not uri.startswith("http://"):
list += Html("a", descr, href = 'http://%s' % uri) list += Html("a", descr, href = 'http://%s' % uri)
else: else:
list += Html("a", href = "%s" % uri) list += Html("a", href = uri)
# FTP server address # FTP server address
elif _type == UrlType.WEB_FTP: elif _type == UrlType.WEB_FTP:
if not uri.startswith("ftp://"): if not uri.startswith("ftp://"):
list += Html("a", descr, href = 'ftp://%s' % uri) list += Html("a", descr, href = 'ftp://%s' % uri)
else: else:
list += Html("a", drscr, href = "%s" % uri) list += Html("a", drscr, href = uri)
# custom type # custom type
else: else: