AJ says I shouldn't call all those objectValues into memory. Okay, what's a way around that? I just need the number ;)
--On 12. März 2007 23:25:59 +0100 Maciej Wisniowski <
maciej.wisniowski@coig.katowice.pl> wrote:
>> <span tal:define="batch here/quotes/objectValues; num python:len(batch)">
>> <p tal:replace="python:here.randomNumber(num)" />
>> </span>
> Check what here/quotes is evaluating to. Seems that it is int.
>
>
In addition there is no need to call objectValues just to determine the
number of all objects within a container. objectValues() will load
*all objects* of the folder *into memory*. Don't do that.
-aj