Autor Tópico: python: simpletal não imprime corretamente...  (Lida 1470 vezes)

Offline crixtiano

  • Usuário Ubuntu
  • *
  • Mensagens: 339
    • Ver perfil
python: simpletal não imprime corretamente...
« Online: 15 de Outubro de 2007, 17:34 »
no simpletal, estou fazendo assim,

no arquivo template.html tenho :

=================================
<td valign="top" colspan="2" tal:content="p_top" > Tópico </td>
=================================

no código python eu tenho :

=================================
context = simpleTALES.Context()
context.addGlobal ("p_top", self.__readPage__("p_top.html"))
=================================


e em p_top.html  eu tenho:

=================================
<h1> Aqui ficara o topico </h1>
=================================


Ou seja, a impressão final TERIA que ser algo do tipo:

=================================
<td valign="top" colspan="2"> <h1> Aqui ficara o topico </h1> </td>
=================================

Mas tá saindo assim:

=================================
<td valign="top" colspan="2">&lt;h1&gt; Aqui ficara o topico &lt;/h1&gt;
</td>
=================================


Dessa forma a tag "<h1>" não está sendo interpretada pelo navegador.

Alguma sugestão ?


Obrigado


Cristiano