[Zope] Inserting headers and footers in response messages
Bruce Eckel
Bruce@EckelObjects.com
Mon, 26 Nov 2001 07:20:29 -0800
Excellent, thanks! I just combined them:
self.standard_html_header(self, self.REQUEST)
Worked like a charm.
I'm still getting used to the idea that 'self' has all these
attributes. Is there a way to display all the attributes and
methods available for the current 'self'? That would be a good
exploration tool, I think.
*********** REPLY SEPARATOR ***********
On 11/25/01 at 11:45 PM Oleg Broytmann wrote:
>On Sun, Nov 25, 2001 at 11:29:03AM -0800, Bruce Eckel wrote:
>> return '''<dtml-var standard_html_header>
>>
>> I'm not really surprised that standard_html_header and
>> standard_html_footer aren't being expanded in the result, but I
>> wonder if there's a way to do it?
>
> Expand it yourself:
>
>header = self.standard_html_header # now we have the address of
the object
>header_html = header(self, self.REQUEST) # call it to render it
>
> The same for the standard_html_footer.
>
>Oleg.
>--
> Oleg Broytmann http://www.zope.org/Members/phd/
phd@phd.pp.ru
> Programmers don't die, they just GOSUB without RETURN.
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>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 )
Most current information can be found at:
http://www.mindview.net/Etc/notes.html
===================
Bruce Eckel http://www.BruceEckel.com
Contains free electronic books: "Thinking in Java 2e" & "Thinking
in C++ 2e"
Please subscribe to my free newsletter -- just send any email to:
join-eckel-oo-programming@earth.lyris.net
My schedule can be found at:
http://www.mindview.net/Calendar
===================