[ZPT] Lower case

Shane Hathaway shane@zope.com
Tue, 25 Jun 2002 16:52:18 -0400


Jeffrey P Shell wrote:
> If you're using a Zope running Python 2.0 or later (ie, Zope 2.4 or later),
> you can use string methods directly:
> 
> <span tal:define="b python:request.somevalue.lower()">
> <p tal:content="b">testing</p>
> </span>

... and if we had pipes and tools, you could write (using the modified 
syntax at the end of the proposal):

<p tal:replace="request/somevalue >> tools/lower">testing</p>

Shane