[ZPT] title attribute for PageTemplateFile objects
Michael R. Bernstein
webmaven@lvcm.com
08 Feb 2003 11:57:52 -0800
On Sat, 2003-02-08 at 10:48, Dieter Maurer wrote:
> Michael R. Bernstein wrote at 2003-2-8 00:27 -0800:
> > The path "template/title" obviously fails when used in a
> > PageTemplateFile object. I've seen various workarounds for this, but as
> > one goal for PageTemplateFiles is for them to act the same on the FS as
> > ZPTs do in the ZODB, I was wondering if I was overlooking something
> > obvious.
>
> The easiest way:
>
> after you created the object, give it a title...
So, just:
page = PageTemplateFile('www/page', globals(), __name__='page')
page.title = "the Page"
Is that what you mean?
--
Michael R. Bernstein <webmaven@lvcm.com>