[ZPT] How do I...

Peter Bengtsson mail@peterbe.com
Mon, 21 May 2001 12:18:08 +0200


Do you mean that for example:
<p tal:define="name python:myname()">
</p>
should become like this as well?
<p tal:define="name = python:myname()">
</p>

The equal sign is good and userfriendly but it has to be consistent.
Peter

----- Original Message ----- 
From: "Guido van Rossum" <guido@digicool.com>
To: "Evan Simpson" <evan@digicool.com>; <zpt@zope.org>
Sent: Thursday, May 17, 2001 4:30 PM
Subject: Re: [ZPT] How do I...


> > tal:define="opt options/module_code | request/module_code | nothing"
> 
> Seeing this example again, I'm wondering if perhaps we were too eager
> to minimize the syntax?  Wouldn't this look much better with an '='
> sign after opt?
> 
>   tal:define="opt = options/module_code | request/module_code | nothing"
> 
> --Guido van Rossum (home page: http://www.python.org/~guido/)
> 
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt