On Wed, Mar 08, 2006 at 09:35:55AM +0000, Chris Withers wrote: > John Poltorak wrote: > > > >Several months ago someone provided me with me with some sample code which > >did exactly what I wanted, but looking at it again it looks a little > >unwieldy and could do with tidying up. It consists of:- (snip)
What Chris said, except: > ...then you can do: > > <span tal:define="opts > python:here.lib.parse_file(file=here.news,sepr=',',clone=1)"> > <li repeat="opt opts"> > <a tal:content="python:opt/label" ^^^^^^^ Leave out the "python:" there. -PW -- Paul Winkler http://www.slinkp.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )