[Zope] dtml-with equivalent in external methods?

Dieter Maurer dieter@handshake.de
Fri, 29 Sep 2000 23:59:40 +0200 (CEST)


Phil Harris writes:
 > Anyone know offhand how to do an equivalent to dtml-with in an external
 > method?
Do you have a namespace (i.e. a DocumentTemplate.DT_Util.TemplateDict)?

If so, you use its push method.

If the thing, you would like to "with" is an object
(rather than a mapping), you would wrap it into
a "DocumentTemplate.DT_Util.InstanceDict" before it is
being pushed.



Dieter