[Zope] Build-in functions

Max M maxmcorp@worldonline.dk
Sun, 11 Mar 2001 21:57:08 +0100


From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Axel
Missbach

>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>

Use a little magic variable. _

<dtml-let g="main/detail/form/index">
 <dtml-var "_.replace(g,'/','.')">
</dtml-let>

That might do it.

regards Max M

Max M. W. Rasmussen,    Denmark.   New Media Director
private: maxmcorp@worldonline.dk work: maxm@normik.dk
-----------------------------------------------------
Shipping software is an unnatural act