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

2005-04-08 Thread Christian Heimes
Evan Simpson wrote:
Christian Heimes wrote:
That's an interessting use case. Do you want me to keep the code and 
make up a new expression? I'm thinking about lazy:.

If you have a particular use for defer: that would justify the split, 
please go ahead.  I have no particular interest in keeping it.
I left defer: like it was coded by you and added a new expression lazy: 
that is working like a lazy initialization variable.

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 )


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

2005-04-08 Thread Christian Heimes
Tres Seaver wrote:
I'd be glad to help with that, Christian.
I've added a doc string to the DeferExpr module. Do you want me to write 
 more docs is it enough to be added to the ZPT guide?

Also I need a little help for the unit tests. How can I emulate 
tal:content or similar inside an expression test?

Except of some missing unit tests the branch is ready to merge. I would 
like to get the changes into Zope 2.7.6 so we could use them for Plone 
2.1.0.

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 )


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

2005-04-04 Thread Evan Simpson
Christian Heimes wrote:
That's an interessting use case. Do you want me to keep the code and 
make up a new expression? I'm thinking about lazy:.
If you have a particular use for defer: that would justify the split, 
please go ahead.  I have no particular interest in keeping it.

Cheers,
Evan @ 4-am
___
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] Re: ZPT: defer expression fix

2005-04-02 Thread Christian Heimes
Dieter Maurer wrote:
Maybe, the feature could get documented as well...
An undocumented feature is only half valuable...
+1
Is there anybody out there who can help me with the docs? I need someone 
to translate my english into real and nice english and someone with the 
permissions to update the ZPT docs at zope.org.

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 )


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

2005-04-02 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Christian Heimes wrote:
 Dieter Maurer wrote:
 
 Maybe, the feature could get documented as well...

 An undocumented feature is only half valuable...
 
 
 +1
 
 Is there anybody out there who can help me with the docs? I need someone
 to translate my english into real and nice english and someone with the
 permissions to update the ZPT docs at zope.org.

I'd be glad to help with that, Christian.


Tres.
- --
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  Zope Dealers   http://www.zope.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCTxsxGqWXf00rNCgRAlBWAJ0bRNxSl988o6bADBS26kiNfdcRfwCbBSZU
O211nz1gkQeJA6W/99vPhmM=
=UYLo
-END PGP SIGNATURE-

___
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] Re: ZPT: defer expression fix

2005-04-01 Thread Evan Simpson
Christian Heimes wrote:
 * DeferWrapper didn't cache the result of the expression like ordinary 
vars do.
This was intended, though you couldn't know that since I never 
documented this.  Consider the following terrible example:

div tal:define=xis defer:string:x is $x
  p tal:repeat=x python:range(3)
 tal:content=xis/p
/div
This should evaluate to:
div
  px is 0/p
  px is 1/p
  px is 2/p
/div
Why??  I don't remember why I wanted this behavior; it was an 
experiment, and I can't find any code of mine that uses it.

Cheers,
Evan @ 4-am
___
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] Re: ZPT: defer expression fix

2005-03-29 Thread Christian Heimes
Florent Guillaume wrote:
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 ?
Ups, done :)
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 )