[Zope] First External Method

Ben Ocean zope@thewebsons.com
Tue, 23 Oct 2001 09:29:21 -0700


At 06:43 PM 10/23/01 +0400, you wrote:
>On Tue, Oct 23, 2001 at 07:31:21AM -0700, Ben Ocean wrote:
> > >    Do not use DTML inside DTML.
> > >       <img src="images/top" width=<dtml-var sizeCalc(1008,size)>...
>
>    You should call it like this: <dtml-var "sizeCalc(1008, size)">. And if
>you receive an error about "size" - there is a problem with that size, and
>you should fix the problem with the size, not with the External Method.

I'm confused. If I plug <dtml-var size> anywhere else in the above script 
it prints *1*. In other words, I have a dtml method called *size* and the 
only thing in it is the number 1. If I replace *size* with the number 1 in 
the above <img> tag, width yields 1008 as it should (1008*1). So I don't 
understand why the <dtml-var size> doesn't work when called as *size* in 
the External Method. What am I missing?
TIA,
BenO