<div>Well, I'm trying to do the following:</div>


<div>1) generate a list of variables using tal:define</div>


<div>2) pass those variables to a script, that will then make a few edits and render everything as an HTML page.</div>


<div>&nbsp;</div>


<div>I'm doing this as a work-around to the problem I posted earlier, that nobody apparently could solve, called "Form-Through-Script", where I was trying to call a script using a form action but couldn't pass the page as a variable. Well, I can pass variables and reconstruct the page, but then I have the problem of missing "structure".</div>


<div>&nbsp;</div>


<div>Conversely, it could pass those variables to a page that would then render, but how to pass them and render the page? </div>


<div>&nbsp;</div>


<div>There has GOT to be a way to work around this!</div>


<div>TIA,</div>


<div>Tony<br>
<br>
<br>
-----Original Message-----<br>
From: Doyon, Jean-Francois &lt;jdoyon@NRCan.gc.ca&gt;<br>
To: tonylabarbara@aol.com; lists@zopyx.com; zope@zope.org<br>
Sent: Wed, 15 Aug 2007 10:50 am<br>
Subject: RE: [Zope] How Do I "Structure" This?<br>
<br>
</div>


<div id=AOLMsgPart_2_d40cdb95-efc4-4138-b1cb-6511b3587f5b>

<div dir=ltr align=left><SPAN class=610364914-15082007><FONT face=Arial color=#0000ff size=2>Why would you put HTML inside an HREF?</FONT></SPAN></div>


<div dir=ltr align=left><SPAN class=610364914-15082007><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</div>


<div dir=ltr align=left><SPAN class=610364914-15082007><SPAN class=266544914-15082007><FONT face=Arial color=#0000ff size=2>Sounds to me like you want &lt;html tal:replace="structure python: here.a_script(str(x))" /&gt; or something like that.</FONT></SPAN></SPAN></div>
<br>


<div class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> <A href="mailto:zope-bounces@zope.org">zope-bounces@zope.org</A> [<A href="mailto:zope-bounces@zope.org?">mailto:zope-bounces@zope.org</A>] <B>On Behalf Of </B><A href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</A><br>
<B>Sent:</B> August 15, 2007 10:45<br>
<B>To:</B> <A href="mailto:lists@zopyx.com">lists@zopyx.com</A>; <A href="mailto:zope@zope.org">zope@zope.org</A><br>
<B>Subject:</B> Re: [Zope] How Do I "Structure" This?<br>
</FONT><br>
</div>


<div></div>
Bummer. Well, I'm trying to call a script that will render content to the Web, like this:<br>
&lt;a tal:attributes="href python:here.a_script(str(x))"&gt;<br>
which calls a script that does this:<br>
return "&lt;html&gt;&lt;body&gt;" + x + "&lt;/body&gt;&lt;/html&gt;"<br>
but of course it delivers this to the browser:<br>
&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;x&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;<br>
Any way to work around this problem?<br>
TIA,<br>
Tony<br>
<br>
<br>
-----Original Message-----<br>
From: Andreas Jung &lt;<A href="mailto:lists@zopyx.com">lists@zopyx.com</A>&gt;<br>
To: <A href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</A>; <A href="mailto:zope@zope.org">zope@zope.org</A><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:&nbsp;<br>
&nbsp;<br>
&gt; Hi;&nbsp;<br>
&gt; I have the following PT code:&nbsp;<br>
&gt; &lt;a tal:attributes="href python:here.a_script(str(x))"&gt;&nbsp;<br>
&gt; and I want to "structure" it, kind of like this:&nbsp;<br>
&gt; &lt;a tal:attributes="structure href python:here.a_script(str(x))"&gt;&nbsp;<br>
&gt; How do I do that?&nbsp;<br>
&nbsp;<br>
As documented, 'structure' only works with tal:content|replace.&nbsp;<br>
&nbsp;<br>
-aj&nbsp;<br>
</div>


<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>
</div>
<!-- end of AOLMsgPart_2_d40cdb95-efc4-4138-b1cb-6511b3587f5b -->