[Zope] Re: Calling a DTML Method from within an External Method

Chris McDonough chrism@zope.com
Sat, 24 Nov 2001 18:53:36 -0500


Yup... try this from inside an external method:

  return self.dtml_method_name(None, self.REQUEST, arg1='foo',
arg2='bar')

There are other ways to do this.  This is a particularly Perlish
corner of Zope, but the above usually works.

----- Original Message -----
From: "Bruce Eckel" <Bruce@EckelObjects.com>
To: <zope@zope.org>
Cc: <chrism@digicool.com>
Sent: Friday, November 23, 2001 1:25 PM
Subject: Calling a DTML Method from within an External Method


> Is there a way, inside an external method, to *call* a DTML Method
> -- that is, to execute it?
>
> If so, how would I pass arguments to the DTML Method?
>
> Thanks...
>
>
> Most current information can be found at:
> http://www.mindview.net/Etc/notes.html
> ===================
> Bruce Eckel    http://www.BruceEckel.com
> Contains free electronic books: "Thinking in Java 2e" & "Thinking
> in C++ 2e"
> Please subscribe to my free newsletter -- just send any email to:
> join-eckel-oo-programming@earth.lyris.net
> My schedule can be found at:
> http://www.mindview.net/Calendar
> ===================
>
>
>