[Zope] HTML

Tino Wildenhain tino at wildenhain.de
Mon Nov 29 14:44:16 EST 2004


Hi,

Am Montag, den 29.11.2004, 19:48 +0100 schrieb baptiste Ancey:
> Hi,
> 
> I just want to make a python script which generate an html balise.
> like: generateTable('toto') return "<table><tr><td>toto</td>... etc"
> 
> but when i want to use it in a span (span tal:content="generateTable...") all 
> the html are change like that : &lt;table border='1'&gt;
> 
> Can you help me to prevent that.

Apart from the structure keyword mentioned in all the other posts,
it might be well worth thinking about if you need it in the first
place. Why not just generate a list or list of lists and
use the template (or a macro) to generate the table?
Building of HTML in a python script with string concenation
is usually a kludge.

Regards
Tino



More information about the Zope mailing list