Added ftps:// to list of url.startswith() in display_url_list().

svn: r15575
This commit is contained in:
Rob G. Healey 2010-06-17 04:47:32 +00:00
parent f5ef3abf53
commit c5f30ccc3a
2 changed files with 15 additions and 11 deletions

View File

@ -1187,6 +1187,9 @@ div#WebLinks {
table.WebLinks { table.WebLinks {
width: 100%; width: 100%;
} }
table.WebLinks tbody tr td {
color: #000;
}
table.weblinks tbody tr td.ColumnType { table.weblinks tbody tr td.ColumnType {
width: 15%; width: 15%;
} }

View File

@ -1623,7 +1623,7 @@ class BasePage(object):
Html('th', label, class_ = "Column" + colclass, inline = True) Html('th', label, class_ = "Column" + colclass, inline = True)
for (label, colclass) in [ for (label, colclass) in [
(THEAD, "Type"), (THEAD, "Type"),
(_("Web Path"), "Path"), (_("Url"), "Path"),
(DESCRHEAD, "Description") ] (DESCRHEAD, "Description") ]
) )
@ -1652,7 +1652,8 @@ class BasePage(object):
# 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://") or
uri.startswith("ftps://")):
uri = "ftp://%(ftpsite)s" % { "ftpsite" : uri } uri = "ftp://%(ftpsite)s" % { "ftpsite" : uri }
uri = Html("a", uri, href = uri, title = html_escape(uri)) uri = Html("a", uri, href = uri, title = html_escape(uri))