web/views/idownloadable.py
branchstable
changeset 2136 ffd6c68bc485
parent 1977 606923dff11b
child 2312 af4d8f75c5db
--- a/web/views/idownloadable.py	Tue Jun 23 10:53:57 2009 +0200
+++ b/web/views/idownloadable.py	Tue Jun 23 10:54:46 2009 +0200
@@ -125,7 +125,7 @@
         """the secondary view is a link to download the file"""
         entity = self.entity(row, col)
         url = html_escape(entity.absolute_url())
-        name = html_escape(entity.download_file_name())
+        name = html_escape(title or entity.download_file_name())
         durl = html_escape(entity.download_url())
         self.w(u'<a href="%s">%s</a> [<a href="%s">%s</a>]' %
                (url, name, durl, self.req._('download')))