[Zope] A nice problem with url_quote_plus
Nbk
nbk@cyberdude.com
Fri, 28 Apr 2000 11:41:49 +0100
Hi.
I have the folowing code in one of my DTML method's:
<dtml-call "RESPONSE.redirect(_.string.join([url,query],''))">
'url' and 'query' are two variables passed by the REQUEST. This work's just fine,
but with some minor :-) problems in my case. If i have a 'query' with some spaces,
the RESPONSE.redirect causes an obvious http error. So, i want to replace some
characters of my 'query' variable. And guess what? <dtml-var url url_quote_plus>
gives me the right string. How do i do an "quote_plus" ( like in python urllib module )
in Zope, without using an External Method?
BTW, i've used an python method, but with no luck ( i can't make a
simple "import urllib").
TIA,
@886, Nbk ( Just believe, Zope source code is the best place to find up-to-date
documentation! )
P.S. - I've looked up for the solution in www.google.com, www.egroups.com,
lists.zope.org, www.zope.org, www.python.org, and some other resources.
I had find some interesting ideas, but none of them are usefull to this problem. :-)