Re: [Zope-dev] ZPT: defer expression fix

2005-03-30 Thread Dieter Maurer
Christian Heimes wrote at 2005-3-28 21:03 +0200:
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.

Maybe, the feature could get documented as well...

An undocumented feature is only half valuable...

-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] ZPT: defer expression fix

2005-03-29 Thread Florent Guillaume
Christian Heimes  [EMAIL PROTECTED] 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.

I had trouble finding your branch because you put it in
Zope/tiran-zpt-pydefer instead of Zope/branches/tiran-zpt-pydefer.

Could you move it ?

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] ZPT: defer expression fix

2005-03-28 Thread Christian Heimes
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.
Christian
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] ZPT: defer expression fix

2005-03-28 Thread Jens Vagelpohl
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
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )