[Zope] Newbie: need a simple example of external method

Loren Stafford lstafford@icompression.com
Wed, 13 Oct 1999 13:44:31 -0700


Go to the How-To's section of the Zope site:

http://www.zope.org/Documentation/How-To

The one about external methods is:

http://www.zope.org/Documentation/How-To/ExternalMethods

-- Loren

> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Hung
> Jung Lu
> Sent: Wednesday, October 13, 1999 13:16
> To: 'zope@zope.org'
> Subject: [Zope] Newbie: need a simple example of external method
> 
> 
> Hi,
> 
> I just subscribed to the mailing list, and in less than one 
> day I got 60 messages, wow! This list surely is active.
> 
> Can anyone give to me a simple example of a DTML
> document calling an external method? I mean, if I
> have a Python program
> 
> myprogram.py:
> 
> def myfunc(x):
>     return 2*x;
> 
> How do I proceed to use it in DTML, and how do I 
> place it in the external methods folder?
> 
> regards,
> 
> Hung Jung
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (Related lists - please, no cross posts or HTML encoding!
> 
> To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
> 
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>