[Zope] Using tal and no dmtl.

Paul Winkler pw_lists@slinkp.com
Fri, 30 May 2003 06:04:57 -0400

On Fri, May 30, 2003 at 09:34:50AM -0400, John Kipling Lewis wrote:
> 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()">

tal:define works perfectly well for this.
I don't think we need a new tal statement just for the special case of
not caring about the return value.


Paul Winkler
Look! Up in the sky! It's HYPER SKULL MAFIOSO!
(random hero from isometric.spaceninja.com)