[Zope] dtml newbie question

Ed Leafe ed@leafe.com
Sun, 4 Aug 2002 11:08:43 -0400


On Sunday, August 4, 2002, at 10:26  AM, 3205 5361 1215 9784 wrote:

>   hi do i return the lowercase of an attribute?
>   i tried:
>   <dtml-var "_.str(title_1).lowercase()">
>   and
>   <dtml-var "title_1.lowercase()">
>
>   and some others..   but it keeps saying:
>
>       Error Type: AttributeError
>       Error Value: lowercase
>
>   title_1 is a property of the folder.

	Try something like:

<dtml-var expr="title_1.lower()">

	The function you want is just lower(), not lowercase(). And the 
value for 'title_1' should be available via acquisition.


      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://foxcentral.net