diff doc/whatsnew-0.7.txt @ 2180:58b6d1747973

Web interface tweaks. - added a favicon - added url_quote and html_quote methods to the utils object - added isset method to HTMLProperty - added "download_url" method to generate a correctly quoted URL for file download links [SF#927745]
author Richard Jones <richard@users.sourceforge.net>
date Mon, 05 Apr 2004 00:51:45 +0000
parents cd42c3c7173a
children 7c0ed51cc865
line wrap: on
line diff
--- a/doc/whatsnew-0.7.txt	Mon Apr 05 00:51:00 2004 +0000
+++ b/doc/whatsnew-0.7.txt	Mon Apr 05 00:51:45 2004 +0000
@@ -217,6 +217,27 @@
 don't include the sidebar.
 
 
+Quoting of URLs and HTML
+------------------------
+
+Templates that wish to offer file downloads may now use a new
+``download_url`` method:
+
+ <tr tal:repeat="file context/files">
+  <td>
+   <a tal:attributes="href file/download_url"
+      tal:content="file/name">dld link</a>
+  </td>
+ ...
+
+The ``download_url`` method looks up the file's "id" and "name" and
+generates a correctly-quoted URL.
+
+Additionally, users wishing to URL- or HTML- quote text in their templates
+may use the new ``utils.url_quote(url)`` and ``utils.html_quote(html)``
+methods.
+
+
 Email Interface
 ===============
 

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