After spending very lot of time in reading the documentation i tried your offer myself. But there's an AttributError returned. ender wrote:
spending some time reading the zope documentation will answer most of the questions you have posted, and save bandwidth and the community's time.
<dtml-let g="_.replace('main/detail/form/index','/','')"> <dtml-var g> </dtml-let>
as for the zsql stuff, what gets returned is a brain which gets put onto the top of the namespace. in more intelligible words, just use the variables you selected in the query as normal dtml-vars.
kapil
On Sunday 11 March 2001 09:45, 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 )