[ZPT] capitalize() but not capwords() ?

Tino Wildenhain tino at wildenhain.de
Fri Jan 30 02:40:58 EST 2004


Hi Marc,

Marc Lindahl schrieb:
> zope 2.6.2....  no capwords() from ZPT/TAL??
> 
capwords() isnt a method of string class.
It has been part of the old string module
iirc.

Otoh, why do you need it?
You could just use CSS to show text capitalized
(this even handles umlauts correctly)
or use ' '.join([p.capitalize() for p in yourvariable.split()])


Regards
Tino Wildenhain




More information about the ZPT mailing list