Karol Tarcak wrote:
> rewritingparser.py -> html_quote looks identical + it has the same
> comment to use unicode :)
> 
> def html_quote(v):
>     if v is None:
>         return ''
>     elif hasattr(v, '__html__'):
>         return v.__html__()
>     elif isinstance(v, basestring):
>         return cgi.escape(v, 1)
>     else:
>         # @@: Should this be unicode(v) or str(v)?
>         return cgi.escape(str(v), 1)

Ah, there was a different problem I fixed related to unicode.  I've 
switched this in trunk to use unicode() when a __unicode__ method is 
present.

-- 
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to