> Does this patch solve ptl compiler encoding issue?
Your patch is buggy :) but after correcting it, yes it solves my
problem! Thank you.
The correct patch is:
> Index: ptl_compile.py
> ===================================================================
> --- ptl_compile.py (revision 26888)
> +++ ptl_compile.py (working copy)
> @@ -152,17 +152,11 @@
> return n
>
> def atom_string(self, nodelist):
> - k = ''
> - for node in nodelist:
> - k = k + eval(node[1])
> - lineno = node[2]
> - return self._get_text_node(k)
> -
> - def _get_text_node(self, k):
> - if self._get_template_type() == "html":
> - return ast.CallFunc(ast.Name('_q_htmltext'), [ast.Const(k)])
> + const_node = transformer.Transformer.atom_string(self, nodelist)
> + if "html" == self._get_template_type():
> + return ast.CallFunc(ast.Name('_q_htmltext'), [const_node])
> else:
> - return ast.Const(k)
> + return const_node
>
> _template_re = re.compile(
> r"^(?P[ \t]*) def (?:[ \t]+)"
>
>
>
--
damjan | дамјан
This is my jabber ID --> damjan@bagra.net.mk <-- not my mail address!!!