[Zope] Re: calling dtml method from python script

Maik Jablonski maik.jablonski@uni-bielefeld.de
Wed, 09 Oct 2002 11:48:33 +0200


Mark Gibson wrote:
> I really thought I knew how to do this:
> 
> context.sendMail(_.None,_)
> 
> However, it can't resolve the names within the sendmail message:
> 
> Error Type: KeyError
> Error Value: MailHost
> 
> sendMail works fine using the 'View' tab
> 
> Any ideas?

try:

context.sendMail(context,context.REQUEST)

cheers, maik