[Zope-dev] ZPT: defer expression fix

Jens Vagelpohl jens at dataflake.org
Mon Mar 28 16:25:31 EST 2005


On Mar 28, 2005, at 21:03, Christian Heimes wrote:

> PageTemplates have an undocumented features called defer:. It's a kind 
> of lazy initialization of variables.
>
> I've fixed to issues in my tiran-zpt-pydefer branch (svn):
>
>  * DeferWrappers weren't working inside a python expression because 
> PythonExpr didn't know about them
>
>  * DeferWrapper didn't cache the result of the expression like 
> ordinary vars do.
>
> I would like to merge my branch into 2.7 and 2.8 if I get an ok.

+1

I'm assuming the unit tests still run successfully and you added unit 
tests for your changes.

jens



More information about the Zope-Dev mailing list