[Zope] Using tal and no dmtl.

John Kipling Lewis jklewis@umich.edu
Fri, 30 May 2003 09:34:50 -0400 (EDT)


On Fri, 30 May 2003, Dmitry Dembinsky wrote:

> We use tal:define for this purpose:
>
>   <body tal:define="dummy python:foo(); <other assignments>" ...
>
> Usually this way we run some page setup code which we put inside <body>
> or even top-level <html> tag.

We have done this as well.  It just seemed an obvious hole in the tal
system.  There should be a way to execute arbitrary code in tal.
Something like:

<body tal:run="python:foo()">

John -