[Zope-dev] Where is the Let tag? (Was: RE: regex vs. re)

Phillip J. Eby pje@telecommunity.com
Mon, 28 Jun 1999 10:55:14 -0500


At 11:13 AM 6/28/99 -0400, Michel Pelletier wrote:
>
>> -----Original Message-----
>> From: Martijn Pieters [mailto:mj@antraciet.nl]
>> Sent: Monday, June 28, 1999 9:41 AM
>> To: Michel Pelletier; zope-dev@zope.org
>> Subject: [Zope-dev] Where is the Let tag? (Was: RE: regex vs. re)
>> 
>> 
>> At 15:26 28/06/99 , Michel Pelletier wrote:
>> ><SNIP>
>> >The Let tag rules!
>> 
>> Then why isn't it checked into CVS in yet? =(
>> 
>
>It is now.  We had licensing issues to work out.
>

Great.  By the way, minor point, but my name is Phillip, not Philip, as
shown in the source credit.  :)  Also, it needs a little more work for
integration.  Diffs follow:

Index: DT_Let.py
===================================================================
RCS file: /cvs-repository/Packages/DocumentTemplate/DT_Let.py,v
retrieving revision 1.1
diff -r1.1 DT_Let.py
87c87
<     Philip J. Eby.  Permission has been granted to release the Let tag
---
>     Phillip J. Eby.  Permission has been granted to release the Let tag
115d114
< from DocumentTemplate.DT_String import String
178,179d176
<
< String.commands['let']=Let


DT_Let doesn't need to embed itself into String.commands, if DT_String adds
it as follows:


Index: DT_String.py
===================================================================
RCS file: /cvs-repository/Packages/DocumentTemplate/DT_String.py,v
retrieving revision 1.27
diff -r1.27 DT_String.py
138a139
>         'let': ('let', 'DT_Let','Let'),


Voila.  "let" will now load on demand.