[ZPT] Lower case

Colin Fox cfox@cfconsulting.ca
25 Jun 2002 11:37:23 -0700


--=-Xf+qzOcygmiqEqFyndHs
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi everyone.

I need to be able to force the contents of a variable into lower case,
and I can't find any docs on how to do this.

Here's a simple template showing an example of what I'm trying to do:


<html>
  <head>
    <title tal:content=3D"template/title">The title</title>
  </head>
  <body>
   =20
    <span tal:define=3D"b python:string.lower(${request/somevalue})">
    <p tal:content=3D"string:${b}">testing</p>
    </span>

  </body>
</html>


Any suggestions?

Thanks!
  Colin


--=20
Colin Fox                                         cfox@cfconsulting.ca
CF Consulting Inc.                                    GPG Fingerprint:
                    D8F0 84E7 E7CC 5C6C 9982  F1A7 A3EB 6EA3 BC97 572F

--=-Xf+qzOcygmiqEqFyndHs
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA9GLhio+tuo7yXVy8RAj2yAKC3mf1cero4mMyXNtTqEGlAyYzk6wCfSjGn
MKvQ81NTl/Q/1+eGrpIGLas=
=mKvn
-----END PGP SIGNATURE-----

--=-Xf+qzOcygmiqEqFyndHs--