[Zope] Proper Case function
Mon, 07 May 2001 01:38:21 +0200
zope is built with python. You do a lot easyer, if you
learn python. Quick with the tutorial and then keep the
"library reference" under your pillow.
However, the function you are looking for is
called "capitalize". It is part of the string modul, so
in dtml, it would be reachable by "_.string.capitalize(yourstring)"
--On Samstag, 5. Mai 2001 19:09 -0800 Tommy Johnson <email@example.com>
> Hello all,
> I'm looking for a proper case function --> something that will return the
> string "Category" from the string "category". It doesn't have to worry
> about if the string is a proper name, but that would be nice. I'm just
> trying to figure out if a function exists that will capitalize the first
> letter of a string (or if I have to script something).
> Thanks in advance,
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> Zope maillist - Zope@zope.org
> ** No cross posts or HTML encoding! **
> (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )