[Zope] calling standard_html_header from external methods

Dieter Maurer dieter@handshake.de
Mon, 3 Jul 2000 23:45:53 +0200 (CEST)


Daryl Tester writes:
 > Dieter Maurer wrote:
 > 
 > > The __call__ function of DTML methods gets the following
 > > arguments: client=None, mapping=None, **kw.
 > > 
 > > You therefore may call it: "self.standard_html_header(self,REQUEST)"
 > > or "self.standard_html_header(None,REQUEST)".
 > 
 > And what's the difference between passing in self or None?  What
 > does the client parameter actually do?
When you pass 'None', the DTML method can only use the content
of REQUEST. If you pass "self", it can additionally use the direct
and acquired attributes of "self".



Dieter