[Zope3-Users] container items
Marius Gedminas
marius at gedmin.as
Sun Jan 18 02:38:59 EST 2009
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">
HTH,
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
kernel.
-- Bram Cohen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20090118/c560204c/attachment.bin
More information about the Zope3-users
mailing list