[Zope] Proper Case function

Randall F. Kern randy@spoke.net
Sat, 5 May 2001 22:33:14 -0700


>From DTML:

<dtml-var foo capitalize>

>From Python:

import string
string.capitalize('category')

-Randy

> -----Original Message-----
> From: Tommy Johnson [mailto:astlj@hotmail.com]
> Sent: Saturday, May 05, 2001 8:10 PM
> To: zope@zope.org
> Subject: [Zope] Proper Case function
>=20
>=20
> Hello all,
>=20
> I'm looking for a proper case function --> something that=20
> will return the=20
> string "Category" from the string "category". It doesn't have=20
> to worry about=20
> if the string is a proper name, but that would be nice. I'm=20
> just trying to=20
> figure out if a function exists that will capitalize the=20
> first letter of a=20
> string (or if I have to script something).
>=20
> Thanks in advance,
> Tommy
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>=20