[Checkins] SVN: Sandbox/malthe/Chameleon/src/chameleon/core/testing.py Added encoding option.
Malthe Borch
mborch at gmail.com
Sat Sep 20 14:45:56 EDT 2008
Log message for revision 91289:
Added encoding option.
Changed:
U Sandbox/malthe/Chameleon/src/chameleon/core/testing.py
-=-
Modified: Sandbox/malthe/Chameleon/src/chameleon/core/testing.py
===================================================================
--- Sandbox/malthe/Chameleon/src/chameleon/core/testing.py 2008-09-20 18:44:40 UTC (rev 91288)
+++ Sandbox/malthe/Chameleon/src/chameleon/core/testing.py 2008-09-20 18:45:55 UTC (rev 91289)
@@ -38,9 +38,9 @@
template = compiler(parameters=sorted(kwargs.keys()))
return template.render(**kwargs)
-def compile_template(parser, body, **kwargs):
+def compile_template(parser, body, encoding=None, **kwargs):
compiler = TestCompiler(
- body, parser, implicit_doctype=doctypes.xhtml)
+ body, parser, encoding=encoding, implicit_doctype=doctypes.xhtml)
template = compiler(parameters=sorted(kwargs.keys()))
return template.render(**kwargs)
More information about the Checkins
mailing list