[Zope] Accessing ZSQL result object contents via python:repeat

andrew cooke andrew at acooke.org
Sun Oct 26 16:12:06 EST 2003


I have an ZSQL result, which I am iterating over using tal:repeat.  I can
access the column values using tal syntax like item/col1 and item/col2. 
But how do I access thes values via Python?  I've tried
python:repeat['item'].col1, python:repeat['item'].col1(), and
python:repeat['item']['col1'], but none of those work.  What's the magic
recipe?

Thanks,
Andrew

-- 
http://www.acooke.org/andrew



More information about the Zope mailing list