> <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. -- Maciej Wisniowski