[Zope] How Do I "Structure" This?
tonylabarbara at aol.com
tonylabarbara at aol.com
Wed Aug 15 11:08:41 EDT 2007
Well, I'm trying to do the following:
1) generate a list of variables using tal:define
2) pass those variables to a script, that will then make a few edits and render everything as an HTML page.
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".
Conversely, it could pass those variables to a page that would then render, but how to pass them and render the page?
There has GOT to be a way to work around this!
TIA,
Tony
-----Original Message-----
From: Doyon, Jean-Francois <jdoyon at NRCan.gc.ca>
To: tonylabarbara at aol.com; lists at zopyx.com; zope at zope.org
Sent: Wed, 15 Aug 2007 10:50 am
Subject: RE: [Zope] How Do I "Structure" This?
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: zope-bounces at zope.org [mailto:zope-bounces at zope.org] On Behalf Of tonylabarbara at aol.com
Sent: August 15, 2007 10:45
To: lists at zopyx.com; zope at 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 <lists at zopyx.com>
To: tonylabarbara at aol.com; zope at 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 tonylabarbara at aol.com 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.
________________________________________________________________________
AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070815/9cd2db71/attachment.htm
More information about the Zope
mailing list