[Zope] Re: Processing ZSQL results
Maik Jablonski
maik.jablonski@uni-bielefeld.de
Fri, 11 Apr 2003 19:37:03 +0200
Mark Evans wrote:
> One more question though...what does prefix=list do in <dtml-let> and why is it
> required? (this doesn't work if that snippet is removed) Why won't sequence-item
> work instead of list_item?
You can use sequence-item of course, but sequence-item is a little bit
tricky, if you want to use it in python-expression because of the minus
sign (means subtraction in python). You have to use something magic like
_['sequence-item'] to work with it this way. "Prefixing" with
prefix=list "renames" 'sequence-item' to 'list_item', which you can use
normally in python-expressions.
Cheers, Maik