quixote/form form_templates.ptl,1.16,1.17

Andrew Kuchling <akuchlin-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]>
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Update of /home/cvs/quixote/form
In directory hewson:/tmp/cvs-serv12446

Modified Files:
	form_templates.ptl 
Log Message:
Don't quote the widget title.  

(There's an inconsistency here, as the hint text will be HTML-escaped.  
 We probably need to make a decision on whether HTML tags/entities are 
 allowed in widget hints and titles.)


Index: form_templates.ptl
===================================================================
RCS file: /home/cvs/quixote/form/form_templates.ptl,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- form_templates.ptl	14 Oct 2002 23:19:06 -0000	1.16
+++ form_templates.ptl	18 Oct 2002 18:27:35 -0000	1.17
@@ -31,7 +31,7 @@
 def _render_widget_row [html] (self, request, widget):
     if widget.widget_type == 'hidden':
         return
-    title = self.title[widget.name] or ''
+    title = htmltext(self.title[widget.name] or '')
     if self.required.get(widget.name):
         title = title + '&nbsp;*'
     '<tr>'
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.