Adrian Holovaty wrote:
> This is an interesting problem. That template fix would be OK by me,
> but it's sort of a hack. I think we're going to run into similar
> issues with Form.__str__() returning a Unicode object. Maybe, as you
> suggest, Form.__str__() should return a bytestring according to
> DEFAULT_CHARSET, and we could add a Form.__unicode__() that would
> return it as Unicode.

+1

This will work until unicodification when we could get rid of __str__ 
version because the whole template will be processed as unicode anyway.

> Thoughts? And would that approach mix well with the upcoming Python
> 3000 changes? I thought I read something about __unicode__ and __str__
> merging...

At that time it would be a simple act of renaming all '__unicode__' to 
'__str__'.

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

Reply via email to