[Zope] folders with same names (newbie question)

Florent Guillaume fg@nuxeo.com
Wed, 15 May 2002 14:36:38 +0000 (UTC)


Marie Robichon  <robichon@esrf.fr> wrote:
> Within the DTML-mtehod ' javascript' there is a <dtml-with Machine> 
> statement that may be causing the problem but there is also the closing 
> /dtml-with tag so I can't see why that should cause problems...
> 
> > > Error Type: KeyError
> > > Error Value: Parameters

If the intent of the 'javascript' method is to get Parameters from the
toplevel Machine directory, then you have to be sure that the dtml-with
acquires the correct one. As you saw acquisition can get a bit in the
way, especially when using HTML.

Can you not simply rename the toplevel Machine to something else ?
Or else try a hack like <dtml-with "About.aq_parent.Machine"> (untested)
but I'd really rename the whole thing.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com