[Zope] dtml-with equivalent in external methods?
Thu, 28 Sep 2000 23:48:11 +0100
Thanks for replying but I was being a bit confused, by science so to speak.
It was a lot simpler than I thought.
----- Original Message -----
From: "Dieter Maurer" <firstname.lastname@example.org>
To: "Phil Harris" <email@example.com>
Cc: "Zope@Zope. Org" <firstname.lastname@example.org>
Sent: Friday, September 29, 2000 10:59 PM
Subject: Re: [Zope] dtml-with equivalent in external methods?
> 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.
> Zope maillist - Zope@zope.org
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-dev )