24 Oct
2001
24 Oct
'01
7:28 a.m.
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 doesn't work! I have this line in my dtml code: <span class="top"><img src="images/top" width=<dtml-var "sizeCalc(1008,size)"> height=<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