[Zope] Problem: Calling DTML Method from ZPT

Dieter Maurer dieter@handshake.de
Sat, 4 Aug 2001 23:36:47 +0200 (CEST)


Mike Murphy writes:
 > I still got a TALES error in trying what you suggested:
 > 
 > <p tal:replace="structure
 > python:root.games.hangman.index_html(root.games.hangman)"/>
 > ...
 >     (Object: PARENTS[-1].applications.guestbook.entryForm)
 >     (Info: PARENTS)
 >   File <string>, line 2, in f
 >     (Object: guarded_getitem)
You need to pass "request" as second argument!

   <p tal:replace="structure
   python:root.games.hangman.index_html(root.games.hangman,request)"/>


Dieter