Why would you put HTML inside an HREF? Sounds to me like you want <html tal:replace="structure python: here.a_script(str(x))" /> or something like that.
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: August 15, 2007 10:45 To: [EMAIL PROTECTED]; zope@zope.org Subject: Re: [Zope] How Do I "Structure" This? Bummer. Well, I'm trying to call a script that will render content to the Web, like this: <a tal:attributes="href python:here.a_script(str(x))"> which calls a script that does this: return "<html><body>" + x + "</body></html>" but of course it delivers this to the browser: <html><body>x</body></html> Any way to work around this problem? TIA, Tony -----Original Message----- From: Andreas Jung <[EMAIL PROTECTED]> To: [EMAIL PROTECTED]; zope@zope.org Sent: Wed, 15 Aug 2007 10:20 am Subject: Re: [Zope] How Do I "Structure" This? --On 15. August 2007 10:17:56 -0400 [EMAIL PROTECTED] wrote: > Hi; > I have the following PT code: > <a tal:attributes="href python:here.a_script(str(x))"> > and I want to "structure" it, kind of like this: > <a tal:attributes="structure href python:here.a_script(str(x))"> > How do I do that? As documented, 'structure' only works with tal:content|replace. -aj ________________________________ AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com <http://www.aol.com?ncid=AOLAOF00020000000437> .
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )