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

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to