[Zope] VERY Confused!
Toby Dickenson
tdickenson@geminidataloggers.com
Wed, 24 Oct 2001 08:28:52 +0100
On Tue, 23 Oct 2001 11:43:21 -0700, Ben Ocean <zope@thewebsons.com>
wrote:
>Hi;
>I'm new to Python and Zope,
Welcome.
>*size* is a dtml method and is defined thus:
>1
>just the number one.
ok
>but I'm at a loss to understand WHY this=20
>doesn't work! I have this line in my dtml code:
><span class=3D"top"><img src=3D"images/top" width=3D<dtml-var=20
>"sizeCalc(1008,size)"> height=3D<dtml-var "sizeCalc(82,size)">></span>
Here the second parameter to sizeCalc is the dtml method itself, which
is never called. I guess you were expecting it to be the result of
calling that dtml method.
To explitly call a dtml method from python you need:
<dtml-var "sizeCalc(82,size(_.None,_)">
Toby Dickenson
tdickenson@geminidataloggers.com