[Zope] mapping spaces to %20

Ben Edwards ben@videonetwork.org
Tue, 06 Feb 2001 22:40:42 +0000


I am rewriting a website, it used matts free e-commerce to do the cart 
stuff.  when I click on my 'buy now' link the following appears in the URL 
fields of the browser:

http://www.aitsafe.com/cf/add.cfm?userid=3594172&product=Capital%20ills,%20D 
K%20in%20DC&price=5&units=1&return=www.videonetwork.org/cd/catalogue.html

Zope generates

http://www.aitsafe.com/cf/add.cfm?userid=3594172&product=Capital ills, DK 
in DC&price=5&units=1&return=www.videonetwork.org/cd/catalogue.html

To set zope to generate the same stuff I think I need a function but not 
sure how to implement.

Got as far as

<dtml-let web_title="replace(title, ' ', '%20')">
<dtml-var web_title>
</dtml-let>

But it is not quite correct, any ideas?

ben
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
* Ben Edwards lostit@videonetwork.org    +44 (0)7970 269 522 *
* Campaign Against proper English, Dyslexia division         *
* Homepage                http://www.gifford.co.uk/~bedwards *
* i-Contact Progressive Video    http://www.videonetwork.org *
* Smashing the Corporate image     http://www.subvertise.org *
* Bristol's radical news            http://www.bristle.co.uk *
* Open Directory Project                 http://www.dmoz.org *
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+