[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/template.py Template output is now always converted to unicode. This approach probably won't be final, but it's acceptable for now.
Malthe Borch
mborch at gmail.com
Tue Sep 2 06:45:33 EDT 2008
Log message for revision 90689:
Template output is now always converted to unicode. This approach probably won't be final, but it's acceptable for now.
Changed:
U z3c.pt/trunk/src/z3c/pt/template.py
-=-
Modified: z3c.pt/trunk/src/z3c/pt/template.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/template.py 2008-09-02 10:43:41 UTC (rev 90688)
+++ z3c.pt/trunk/src/z3c/pt/template.py 2008-09-02 10:45:32 UTC (rev 90689)
@@ -66,7 +66,8 @@
self.prepare(kwargs)
template = self.cook_check(macro, tuple(kwargs))
kwargs.update(template.selectors)
- return template.render(**kwargs)
+ result = template.render(**kwargs) or ""
+ return result.decode('utf-8')
def __repr__(self):
return u"<%s %d>" % (self.__class__.__name__, id(self))
More information about the Checkins
mailing list