5433: Wrong url separator in Webreport for some pictures

svn: r18629
This commit is contained in:
Michiel Nauta 2011-12-19 09:26:51 +00:00
parent ec0e77cc4f
commit bc3a9d3241

View File

@ -1585,6 +1585,7 @@ class BasePage(object):
image.attr += 'height = "%d"' % height
descr = html_escape(obj.get_description() )
newpath = self.report.build_url_fname(newpath)
image.attr += ' src = "%s" alt = "%s"' % (newpath, descr )
# return an image
@ -4727,6 +4728,7 @@ class DownloadPage(BasePage):
tbody += trow
fname = os.path.basename(dlfname1)
# TODO dlfname1 is filename, convert disk path to URL
tcell = Html("td", class_ = "ColumnFilename") + (
Html("a", fname, href = dlfname1, title = html_escape(dldescr1))
)