Re: [Zope] calling standard_html_header from external methods
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
Dieter Maurer wrote:
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".
(Excuse me for being thick here) So passing in self allows a DTML Method to use (Zope equivlent) acquisition? Regards, Daryl Tester
participants (2)
-
Daryl Tester -
Dieter Maurer