[Zope-dev] DTML Multiplication

John Fohrman fohrman@mediaone.net
Thu, 2 Dec 1999 01:49:32 -0500


Thanks, Jim, but this doesn't work; I still get the same error -- any other
suggestions?



> -----Original Message-----
> From: zope-dev-admin@zope.org [mailto:zope-dev-admin@zope.org]On Behalf
> Of Jim Sanford
> Sent: Wednesday, December 01, 1999 11:48 PM
> To: John Fohrman; Zope Maliing List
> Subject: Re: [Zope-dev] DTML Multiplication
>
>
> This works for me:
> <dtml-let new_val="qty*value">
> <dtml-call "REQUEST.set('totalCost',new_val)">
> </dtml-let>

> ----- Original Message -----
> From: John Fohrman <fohrman@mediaone.net>
> To: Zope Maliing List <zope-dev@zope.org>
> Sent: Wednesday, December 01, 1999 9:32 PM
> Subject: [Zope-dev] DTML Multiplication
>
>
> > Hey Everyone:
> >
> > I'm having trouble doing some simple multiplication in DTML,
> specifically:
> >
> >      <dtml-call "REQUEST.set('value', unitPrice[_['sequence-index']])">
> >      <dtml-call "REQUEST.set('qty', quantity[_['sequence-index']])">
> >      <dtml-call "REQUEST.set('totalCost', qty*value)">
> >
> > It's the last line that causes the error. I've tried a number of things,
> > such as converting the variables to floats, all with no success.  I
> receive
> > the following Zope Error:
> >
> >
> > Error Type: TypeError
> > Error Value: Illegal sequence repeat
> >
> > I appreciate any help.
> >
> > -- John
> >
> >
>