[Zope] "Dynamic" dtml-with

Tino Wildenhain tino@wildenhain.de
Tue, 12 Nov 2002 07:07:35 +0100


Hi,

--On Montag, 11. November 2002 11:46 -0800 Roger Fisher 
<rlfisher@sprynet.com> wrote:

> Is there a syntax I can use to include another folder in my namespace,
> when I wont know which folder until runtime?
>
> For example, if I have similarly-named preferences for different customers
> in folders CUST1 and CUST2, I would like to at run-time be able to do
> something similar to:
> 	<dtml-with "CurrentCustomerString">
> to get the correct customer folder in my namespace.

This would be <dtml-with expr="_[CurrentCustomerString]">.

You should really try to drop DTML and go to Python Script.

Regards
Tino