[Zope] Argument passing and DTMLFile methods

Dieter Maurer dieter@handshake.de
Tue, 2 Jul 2002 20:33:54 +0200


Terry Hancock writes:
 > Dieter Maurer wrote:
 > > Maybe, you should state concisely from what context you want to
 > > pass parameters to DTMLFile methods:
 > > 
 > >   DTMLFile objects behave identically in this respect to
 > >   DTML methods!
 > 
 > My problem is that they don't -- I've tested the
 > same code both ways, and it works with "DTML Methods" but
 > breaks with "DTMLFile Methods".  If indeed they were the
 > same, then I'd be using:
You are right, I am wrong!

  "DTMLFile" uses the modern "Bindings" infrastructure introduced
  with Python Scripts and subsequently used by PageTemplates
  and "DTMLFile".

  You can pass the DTML namespace in the following way:

      your_dtml_file_object(caller_namespace=_, more_keyword_parameters)



Dieter