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:


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

<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>

enjoy ;-)


Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to