unicode , htmltag

dbinger <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Wed, 20 Apr 2005 17:59:50 -0400
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------050103000607020106060701
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Call stringify on attribute values in htmltag so that they work better 
with unicode.

--------------050103000607020106060701
Content-Type: message/rfc822;
 name="SVN: r26631 - trunk/quixote/html"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="SVN: r26631 - trunk/quixote/html"

Return-Path: <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]>
Delivered-To: [email protected]
Received: (qmail 22398 invoked from network); 20 Apr 2005 21:13:39 -0000
Received: from monk.mems-exchange.org (132.151.8.3)
	by 0 with SMTP; 20 Apr 2005 21:13:39 -0000
Received: (qmail 14565 invoked by alias); 20 Apr 2005 21:13:39 -0000
Delivered-To: mems-exchange.org-dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]
Received: (qmail 14561 invoked by alias); 20 Apr 2005 21:13:39 -0000
Delivered-To: mems-exchange.org-mems-cvs-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]
Received: (qmail 14559 invoked from network); 20 Apr 2005 21:13:39 -0000
Received: from miles.mems-exchange.org (132.151.8.12)
	by 132.151.8.3 with SMTP; 20 Apr 2005 17:13:39 -0400
Received: from dbinger by miles.mems-exchange.org with local (Exim 3.36 #1)
	id 1DOMVu-0000zi-00
	for mems-cvs-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]; Wed, 20 Apr 2005 17:13:38 -0400
To: mems-cvs-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]
Subject: SVN: r26631 - trunk/quixote/html
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: David Binger <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]>
Message-Id: <E1DOMVu-0000zi-00-diuEHtAPqkYJ2/[email protected]>
Date: Wed, 20 Apr 2005 17:13:38 -0400

Author: dbinger
Date: 2005-04-20 17:13:38 -0400 (Wed, 20 Apr 2005)
New Revision: 26631

Modified:
   trunk/quixote/html/__init__.py
Log:
nas: make htmltag more unicode friendly.

Changed:
html/__init__.py


Modified: trunk/quixote/html/__init__.py
===================================================================
--- trunk/quixote/html/__init__.py	2005-04-20 20:28:23 UTC (rev 26630)
+++ trunk/quixote/html/__init__.py	2005-04-20 21:13:38 UTC (rev 26631)
@@ -61,7 +61,8 @@
         if val is ValuelessAttr:
             val = attr
         if val is not None:
-            r.append(' %s="%s"' % (attr, htmlescape(val)))
+            r.append(' %s="%s"' % (attr,
+                                   stringify(htmlescape(val))))
     if xml_end:
         r.append(" />")
     else:


--------------050103000607020106060701--