[Zope] Problem: Calling DTML Method from ZPT

Steve Spicklemire steve@spvi.com
Fri, 3 Aug 2001 18:13:55 -0500


Hi Mike,

try:

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

-steve

On Friday, August 3, 2001, at 05:19 PM, Mike Murphy wrote:

> Hi!  I am having problems executing a DTML Method from a ZPT.  I have 
> been
> unable to find documentation regarding whether this is even possible or 
> not.
> Here are a couple of examples:
>
> <!-- With this snippet, I get the DTML unrendered: -->
> <p tal:replace="python:root.games.hangman.index_html"></p>
>
> <!-- With this snippet, I get a TALES error and a big stack trace: -->
> <p tal:replace="root/games/hangman/index_html"></p>
>
> Anybody have any ideas what it is that I am doing wrong?  I like ZPT
> conceptually, and ran into this snag while converting some of my 
> DTML.  (I
> am running Zope 2.4.0 with the latest hotfix.)
>
> Mike
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )