[Zope] First External Method

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Tue, 23 Oct 2001 17:21:35 +0400

On Tue, Oct 23, 2001 at 05:59:22AM -0700, Ben Ocean wrote:
> Hi;
> Here is my very_simple external method. It is called sizeCalc

   Some number of errors.

> def sizeCalc(x,y):
>   print x*y

   return printed

> I have imported the external python method. I call it in a script with this 
> line:
> <img src="images/top" width=<dtml-var sizeCalc(1008,<dtml-var size>)> 

   Do not use DTML inside DTML.
      <img src="images/top" width=<dtml-var sizeCalc(1008,size)>...

     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.