Somebody in #web.py reported this problem: <http://pastebin.com/d4e2e493>. It causes a UnicodeEncodeError on line 238 in utils.py (safestr, the subject of changes since r277, reported as the first version that breaks that code), bazaar revision 278 [1]. Apparently, calling .get('__body__', '') on a TemplateResult instance (teplate.py [2] line 1007) does not return a string, because calling safestr() on the object that call returns goes into line 238, which means it's neither an instance of unicode nor of str. The object it returns, then, should at least have a .__str__ method that automatically encodes to utf-8 (since that seems to be the implicit encoding everywhere). Now it's just trying to encode to python built-in encoding (ASCII), which is a problem.
I didn't really test any of this, I just thought this was the problem, given the source code and the bugreport. Might be a different issue. b^4 [1] http://bazaar.launchpad.net/%7Eanandology/webpy/webpy.dev/annotate/278?file_id=75%402c515a54-6b0d-0410-94c8-a23cf037ada6%3A%3Atrunk%252Fweb%252Futils.py [2] http://bazaar.launchpad.net/%7Eanandology/webpy/webpy.dev/annotate/278?file_id=87%402c515a54-6b0d-0410-94c8-a23cf037ada6%3A%3Atrunk%252Fweb%252Ftemplate.py --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
