On Sat, Jan 17, 2009 at 11:28:02PM -0500, Jim Pharis wrote:
> I've been struggling with a container view that displays attributes of
> the items contained in the container. In the page template for the
> container, I want to display some attributes from each of the items.
> The following works fine
>         <div tal:content="python:context['item1'].text">
>         </div>
> The following produces a Forbidden Attribute error
>         <div tal:repeat="item context/items">

This iterates over the *names* of the items.

>             <div tal:content="item/text"></div>
>         </div>
> What am I doing wrong? Should I be accessing the items in the
> container a different way?

Yes.  You want

          <div tal:repeat="item context/items/values">

Marius Gedminas
It's my understanding that although in principle TCP can handle huge
throughputs in practice many stacks haven't been optimized for that case, so
you have to either use a utility which opens multiple TCP sessions in parallel
or do something really radical like upgrade to the latest version of the linux
                -- Bram Cohen

Attachment: signature.asc
Description: Digital signature

Zope3-users mailing list

Reply via email to