[Zope] ZPT and attributes

Antonio Beamud Montero antonio.beamud at linkend.net
Fri Apr 8 11:00:22 EDT 2005


El vie, 08-04-2005 a las 16:55 +0200, Lennart Regebro escribió:
> On Apr 8, 2005 4:51 PM, Antonio Beamud Montero
> <antonio.beamud at linkend.net> wrote:
> > Hi all:
> > How I can create attribute names dynamically?
> 
> tal:attributes="attributename expression"

Sorry, I haven't explain the problem correctly :)
The problem is the number of "refX" depends on the list of urls, i.e. if
I have ['http://foo', 'http://boo', 'http://google.com'] then I create:

<books ref1='http://foo' ref2='http://boo' ref3='http://google.com'>

but with ['http://foo'] I create:

<books ref1='http://foo'>

How I create refX?

Greetings.


> For example, I want something like this:
> <books  tal:attributes="ref1 string:http://boo";
>                                       ref2 request/URL3" />
> 
> And so on.
> 



More information about the Zope mailing list