[Zope] Simple Question?

Chris Withers chrisw@nipltd.com
Tue, 24 Oct 2000 15:56:28 +0100


Noah wrote:
> In my file "add_art_html" I want to add this code:
>         <dtml-var /mojo/editor/edit>
> But when I try to view it I get a KeyError.
> I also tried:
>         <dtml-var '/mojo/editor/edit'>

If Steve A's patch ever makes it into the core, you could do:

&dtml-/mojo/editor/edit;

...and it'd be great if the Traversal Interface could also be used to
implement:

<dtml-var /mojo/editor/edit>

...but sadly, for now, you need to do:

<dtml-var "PARENT[-1].mojo.editor.edit(_.None,_)">

...or, slightly more tasty:

<dtml-with "PARENT[-1].mojo.editor">
 <dtml-var edit>
</dtml-with>

enjoy ;-)

Chris