11 Dec
2003
11 Dec
'03
6:38 p.m.
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