Re: [Zope] calling standard_html_header from external methods
Marco Mariani writes:
How may I access standard_html_header through acquisition form foo.py?
I've tried
HEADER=self.standard_html_header()
It acquires, but gives me an error on title_or_id, on PARENTS, on whatever. What arguments should I pass to it? 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)". Dieter
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? Regards, Daryl Tester
participants (2)
-
Daryl Tester -
Dieter Maurer