[Zope-dev] url quote from pyton scripts

Flynt rhess@bic.ch
Wed, 27 Jun 2001 09:23:57 +0200


"Magnus Heino (Rivermen)" wrote:
> 
> Hi.
> 
> How can I do a url quote from a python script?
> 
> Can I somehow access the method in urllib or DT_Var or how can it be done?
> 
> --
> 
> /Magnus Heino
> 

Hi Magnus

You have to import url_quote like:

from Products.PythonScripts.standard import url_quote

and then call it on what you want to be url_quoted, like:

url_quote(whatever)


--- Flynt