Hi all I have two folder A e B in the root: |_A (id=A title=A) |_B (id=B title=B) In B I have a dtml method "getTitle", with the line <dtml-var title>. If I use the url /B/A/getTitle it returns 'A', and this is OK. But if I have a method in the root with the line <dtml-var "B.A.getTitle()"> I have a keyerror (title parameter). Why with the syntax B.A.getTitle() the method getTitle() doesn't acquire by A? Thanks. Michele
ilflaminio@virgilio.it wrote at 2003-2-10 10:35 +0100:
... In B I have a dtml method "getTitle", with the line <dtml-var title>. If I use the url /B/A/getTitle it returns 'A', and this is OK. But if I have a method in the root with the line <dtml-var "B.A.getTitle()"> I have a keyerror (title parameter). Why with the syntax B.A.getTitle() the method getTitle() doesn't acquire by A?
I see, you did not read "Calling DTML objects" in <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> Do it! Your problem has nothing to do with acquisition but with calling a DTML object without required parameters... Dieter
participants (2)
-
Dieter Maurer -
ilflaminioļ¼ virgilio.it