[Zope] Calling a DTML Method from within an External Method
Lennart Regebro
lennart@torped.se
Fri, 23 Nov 2001 22:29:56 +0100
From: "Bruce Eckel" <Bruce@EckelObjects.com>
> Is there a way, inside an external method, to *call* a DTML Method
> -- that is, to execute it?
I guess so. You could get hold of the DTMLmethod object in question (maybe
by passing it as a parameter to the External Method?) and then you do
dtmlobject.__call__()
If I remember correctly it will return the HTML code generated by the
DTML-method.
> If so, how would I pass arguments to the DTML Method?
Arguments? Do you mean form variables? This should work then:
__call__(REQUEST={'variable1': 'jasådu', 'variable2': 'Här kommer,
varsågod', 'variable3': 'Det är Fredriks fel.'})
///Just guessing wildly....