[ZPT] Stranger than fiction

Evan Simpson evan@zope.com
Mon, 3 Sep 2001 10:10:39 -0400


From: "Peter Bengtsson" <mail@peterbe.com>
> However, when the DTML Method is being "included" by the PageTemplate,
I get
> an error. A cryptic one too.

Making Page Templates and DTML interoperate well has been a chore, and
it's not quite there yet.  When a PT calls DTML (in a path expression),
it contructs a namespace and pushes some useful values (such as the PT
variables) onto it, and passes the namespace to the DTML object.  In
Zope 2.4 and ZPT 1.3.3, this namespace was missing important security
functions :-(.  In ZPT 1.4, the security works, but there can be strange
effects since the Zope code didn't recognize subclasses of the namespace
class.  I *hope* everything will be fixed in the next release of ZPT and
Zope.

Cheers,

Evan @ Zope