Re: [Zope] calling standard_html_header from external methods
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 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
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 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] calling standard_html_header from external methods
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 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
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 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] calling standard_html_header from external methods
It sounds like it needs some arguments... the most obvious one I would try is request. HEADER=self.standard_html_header(REQUEST) - Original Message - From: "Marco Mariani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, July 01, 2000 6:33 AM Subject: [Zope] calling standard_html_header from external methods > 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? > > Thanks > > > -- > "This company has performed an illegal operation and will be shut down. > If the problem persists, contact your vendor or appeal to a higher court." > - Signal11 on slashdot > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] calling standard_html_header from external methods
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? Thanks -- "This company has performed an illegal operation and will be shut down. If the problem persists, contact your vendor or appeal to a higher court." - Signal11 on slashdot ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )