[ZPT] zpt vhm bug: here?

Mark McEahern mark@mceahern.com
Tue, 13 Aug 2002 20:03:25 -0500


If I'm using a whole page macro, here seems to refer to the object
containing the macro rather than the object using the macro.  If I'm trying
to construct a <title/>, I'd like to do something like this:

  $site : $page

E.g.,

  foo.com : about

But if I do this:

  <title tal:content="python:'%s : %s' % (container.title_or_id(),
here.title_or_id())"></title>

both of these resolve to---oops, now I suspect I've found a bug.  Both of
them resolve to the title or id of the Root folder.  I wonder if this is
because I'm using a VirtualHostMonster?

  /Root (title: foo.com)
    master_html
    index_html

In the above scenario, I get <title>foo.com : foo.com</title>.

// mark

-