[Zope] trailing whitespace optimization

Tino Wildenhain tino@wildenhain.de
Tue, 11 Jul 2000 17:59:50 +0200


Gregory Haley wrote:
> 
> Hi Paul,
> 
> You're right about the size of files with trailing blanks.
> I had a file of over 1 meg yesterday, and when I striped all
> the blanks it was only 47K, pretty radical reduction.
> 
> There is an external Python method that is part of the zope
> Extenions library, it should be in something called
> /opt/zope/Extensions/ called strip_blanks.py.  You can
> attach it to your zope session, then it is called via:
> 
>    <dtml-var "strip_blank(varName)[:-1]">
> 
Is this the same as calling <dtml-var "_.string.strip(varName)"> 
only slower? ;-) 

Regards
Tino Wildenhain