In my opinion the correct sentence will be:<br><br>&lt;a tal:attributes=&quot;href python: here.a_script(x)&quot; /&gt;<br><br>But they are trying to say you that structure don&#39;t do anything here because an anchor expect or a URL or a javascript
<br><br>You are trying to put an html code into an anchor but this don&#39;t work on HTML or xHTML<br><br>If you want to execute the scritp when the user clicks on the anchor you need to use something like:<br><br>&lt;a tal:attributes=&quot;href &lt;the url of the script&gt;&quot; /&gt; -&gt; &lt;a tal:attributes=&quot;href string:${
here.a_script/absolute_url}?doc=${x}&quot; /&gt;<br><br>and when the user clicks the anchor the script will be executed<br><br>can you find a reference help about HTML o xHTML with an anchor like this:<br><br>&lt;a href=&quot;&lt;html&gt;&lt;body&gt;your page here&lt;/body&gt;&lt;/html&gt;&quot; /&gt;
<br><br>no, isn&#39;t it? then structure don&#39;t do nothing here...<br><br><div><span class="gmail_quote">2007/8/15, <a href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</a> &lt;<a href="mailto:tonylabarbara@aol.com">
tonylabarbara@aol.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>I tried this:</div>
&lt;a tal:attributes=&quot;href string:${here/a_script}?doc=${x}&quot;&gt;

<div>but got this error:<br>
<strong>Error Type: TypeError<br>
Error Value: a_script() takes exactly 1 argument (0 given)</strong><br>
Next, I rewrote the script to put in a try statement for the variable, to test that, but before I even got to test I looked at the rendered code from the above line and it gave me this:<br>
&lt;<span>a</span><span> href</span>=<span>&quot;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;nope&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;?doc=0&quot;</span>&gt;<br>
So it doesn&#39;t look like the &quot;string:${...&quot; workaround worked :(<br>
And I don&#39;t think I need to URLquote.<br>
TIA,<br>
Tony<span class="q"><br>
<br>
<br>
-----Original Message-----<br>
From: Chris Withers &lt;<a href="mailto:chris@simplistix.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">chris@simplistix.co.uk</a>&gt;<br>
To: <a href="mailto:tonylabarbara@aol.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tonylabarbara@aol.com</a><br>
Cc: <a href="mailto:lists@zopyx.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lists@zopyx.com</a>; <a href="mailto:zope@zope.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
zope@zope.org</a><br>
Sent: Wed, 15 Aug 2007 11:05 am<br>
Subject: Re: [Zope] How Do I &quot;Structure&quot; This?<br>
<br>
</span></div><span class="q">


<div style="margin: 0px; font-size: 12px; color: rgb(0, 0, 0); font-family: Tahoma,Verdana,Arial,Sans-Serif; background-color: rgb(255, 255, 255);">Ah Tony,&nbsp;<br>
&nbsp;<br>
looks like the penny is yet to drop...&nbsp;<br>
&nbsp;<br>
<a href="mailto:tonylabarbara@aol.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tonylabarbara@aol.com</a> wrote:&nbsp;<br>
&gt; Bummer. Well, I&#39;m trying to call a script that will render content to the Web, like this:&nbsp;<br>
&gt; &lt;a tal:attributes=&quot;href python:here.a_script(str(x))&quot;&gt;&nbsp;<br>
&nbsp;<br>
My guess is that what you&#39;re _really_ trying to do here is:&nbsp;<br>
&nbsp;<br>
&lt;a href=&quot;&quot;&nbsp;<br>
&nbsp;tal:attributes=&quot;href string:${here/a_script/absolute_url}?avar=${x}&quot;/&gt;&nbsp;<br>
&nbsp;<br>
...but next you&#39;ll be wondering how to url quote x.&nbsp;<br>
&nbsp;<br>
I feel we&#39;re fighting a loosing battle here...&nbsp;<br>
&nbsp;<br>
Chris&nbsp;<br>
&nbsp;<br>
-- Simplistix - Content Management, Zope &amp; Python Consulting&nbsp;<br>
&nbsp; - <a href="http://www.simplistix.co.uk/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.simplistix.co.uk</a>&nbsp;<br>
</div>
</span><div>
<hr style="margin-top: 10px;"><span class="q">
AOL now offers free email to everyone.  Find out more about what&#39;s free from AOL at <a href="http://www.aol.com?ncid=AOLAOF00020000000437" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><b>AOL.com
</b></a>.<br>
</span></div>
<br>_______________________________________________<br>Zope maillist &nbsp;- &nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Zope@zope.org">Zope@zope.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">
http://mail.zope.org/mailman/listinfo/zope</a><br>** &nbsp; No cross posts or HTML encoding! &nbsp;**<br>(Related lists -<br>&nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">
http://mail.zope.org/mailman/listinfo/zope-announce</a><br>&nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev
</a> )<br><br></blockquote></div><br><br clear="all"><br>-- <br>Mis Cosas<br><a href="http://blogs.sistes.net/Garito">http://blogs.sistes.net/Garito</a>