Hello zope, 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. thanks, k -- don't believe everything you think
On Sunday, August 4, 2002, at 10:26 AM, 3205 5361 1215 9784 wrote:
<dtml-var "_.str(title_1).lowercase()">
___/ / __/ / ____/ Ed Leafe http://leafe.com/ http://foxcentral.net
On Sunday, August 4, 2002, at 11:06 AM, Ed Leafe wrote:
On Sunday, August 4, 2002, at 10:26 AM, 3205 5361 1215 9784 wrote:
<dtml-var "_.str(title_1).lowercase()">
Whoops! Sorry, clumsy fingers. Didn't mean to send that. ___/ / __/ / ____/ Ed Leafe http://leafe.com/ http://foxcentral.net
Hello Ed, Sunday, August 4, 2002, 5:06:05 PM, you wrote: EL> On Sunday, August 4, 2002, at 10:26 AM, 3205 5361 1215 9784 wrote:
<dtml-var "_.str(title_1).lowercase()"> doesnt work... but <dtml-var "title_1.lower()"> is ok. just checked the ref. ;D lowercase() is deprecated in 2.x versions of python ..
k -- don't believe everything you think
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
participants (2)
-
3205 5361 1215 9784 -
Ed Leafe