[Zope] how to pass <dtml-var sequence-item> to an external method from D TML?

Tony McDonald tony.mcdonald@ncl.ac.uk
Tue, 07 Aug 2001 09:46:54 +0100


On 6/8/01 10:49 pm, "J. Cameron Cooper" <jccooper@rice.edu> wrote:

>> But of course, that will not work, either.
>> 
>> <dtml-var "getPropDescription(sequence-item)"> will fail because
>> python will try to subtract item from sequence before passing the
>> argument.
>> 
>> You can either
>> <dtml-var "getPropDescription(_['sequence-item'])">
>> or use dtml-let to set sequence-item to something without a dash.
> 
> Oh rats. Blasted special cases. What's the big idea not using
> underscores anyway?
> 
>       --jcc
>   (proofread, fool)
> 

Oh dear, here comes the 'Tinos Patch' thread all over again... (archives,
roughly February of this year).

tone
-- 
Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 243 6140
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope