[Zope] Passing variables to External Method

Michel Pelletier michel@digicool.com
Sat, 26 Feb 2000 16:29:30 -0800


Mike wrote:
> 
> Hi All !
> Just wondering how to pass a couple of values (username and password)
> to an external method.
> For simplicity at this stage I was just wanting to use string
> literals.   My External method is called
> popmail.
> 
> It seemed like I wanted to do something like
>     <dtml-var popmail("fred","12343")> but it doesn't seem to work
> 
> Could you please email me as well as returning to the list  -- I don't
> want to miss a response !
> Thanks in advance
> Mike
> 


def popmail(self, name, number):

should work just fine.  'self' will be the container of the external
method, 'name' will be the string 'fred', and 'number' will be the
string "12343".

-Michel