Bummer. Well, I'm trying to call a script that will render content to the Web, like this:<br>
<a tal:attributes="href python:here.a_script(str(x))"><br>
which calls a script that does this:<br>
return "<html><body>" + x + "</body></html>"<br>
but of course it delivers this to the browser:<br>
&lt;html&gt;&lt;body&gt;x&lt;/body&gt;&lt;/html&gt;<br>
Any way to work around this problem?<br>
TIA,<br>
Tony<br>
<br>
<br>
-----Original Message-----<br>
From: Andreas Jung <lists@zopyx.com><br>
To: tonylabarbara@aol.com; zope@zope.org<br>
Sent: Wed, 15 Aug 2007 10:20 am<br>
Subject: Re: [Zope] How Do I "Structure" This?<br>
<br>
<div id=AOLMsgPart_1_b42b6463-b894-4ee5-8489-fc4f44bad0d4 style="FONT-SIZE: 12px; MARGIN: 0px; COLOR: #000; FONT-FAMILY: Tahoma, Verdana, Arial, Sans-Serif; BACKGROUND-COLOR: #fff"> <br>
--On 15. August 2007 10:17:56 -0400 <A href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</A> wrote: <br>
<br>
> Hi; <br>
> I have the following PT code: <br>
> <a tal:attributes="href python:here.a_script(str(x))"> <br>
> and I want to "structure" it, kind of like this: <br>
> <a tal:attributes="structure href python:here.a_script(str(x))"> <br>
> How do I do that? <br>
<br>
As documented, 'structure' only works with tal:content|replace. <br>
<br>
-aj <br>
</div>
<!-- end of AOLMsgPart_1_b42b6463-b894-4ee5-8489-fc4f44bad0d4 --><div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
AOL now offers free email to everyone. Find out more about what's free from AOL at <a href="http://www.aol.com?ncid=AOLAOF00020000000437" target="_blank"><b>AOL.com</b></a>.<br />
</div>