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
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, Tommy _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )