[Zope] MetaPublisher and dtml-let
Dieter Maurer
dieter at handshake.de
Thu Dec 11 13:38:41 EST 2003
Stephan Goeldi wrote at 2003-12-11 14:49 +0100:
>What is wrong with this construct?
>
><dtml-let a="mp_entries.getEntryField(_['key'],'f1071131972')"
> b="mp_entries.getEntryField(_['key'],'f1071139087')"
> c="a*b"
>
> <dtml-var c>
>
></dtml-let>
>
>
>I get this Zope Error:
>Error Type: TypeError
>Error Value: unsupported operand type(s) for *
>
>a and b are both float variables.
You think they should be but apparently, they are not
(otherwise, "a*b" would not raise this exception).
Try "float(a) * float(b)".
--
Dieter
More information about the Zope
mailing list