How about <dtml-var "_.string.replace('main/detail/form/index','/','')"> Using the let will put the vairable into namespace where where treats it like an object. If you only want to output the result, then ignore using let. If you wanted to use LocalFS or access an object that took on the name of the processed string, then you need the Let. Cheers, Paz Axel Missbach wrote:
Trying to use the build-in python string functions like replace without success.
I want to replace the slash with a dot in an URL (main/detail/form/index=> main.detail.form.index), but
<dtml-let g="main/detail/form/index"> <dtml-var replace(g,'/','.')> </dtml-let>
doesn't what i expect. It tries to call the object "replace(main/detail/form/index,'/','.')".
Do i have to import the build-in functions? How?
What's the way doing the replacement?
with regards Axel
_______________________________________________ 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 )