[Zope] How to do <dtml-var ../mthdname>

Dieter Maurer dieter@handshake.de
Fri, 30 Nov 2001 22:52:00 +0100


nunosalgado@clix.pt writes:
 > I have One folder 'foo' with a dtml method 'xpto'
 > and a subfolder 'bar' with another method 'xpto'.
 > 
 > The bar.xpto have to call the foo.xpto (<dtml-var
 > expr="http://localhost/foo/xpto">. How can i do
 > that? Because I always receive the message 'Key
 > doesn't exist'.

"restrictedTraverse('/foo/xpto')"

For background, see, e.g.,

  <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>



Dieter