[Zope] URL encoding in a python script?

Etienne Labuschagne ELabuschagne@gims.com
Wed, 20 Mar 2002 09:58:21 +0200


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1CFE5.010CA1B0
Content-Type: text/plain;
	charset="iso-8859-1"



-----Original Message-----
From: Bak @ kedai [mailto:kedai@kedai.com.my]
Sent: Wednesday, March 20, 2002 4:16 AM
To: Etienne Labuschagne; Zope User List (E-mail)
Subject: Re: [Zope] URL encoding in a python script?


>Is there an equivalent to urllib.urlencode for Python scripts?
>
>I tried to import urllib and then use the above, but no luck.  Am I missing
>something obvious?
>

certain formatting like url_quote, html_quote, etc can be imported
off the top of my head, try:
from Products.PythonScript.standard import url_quote

if it doesnt work, check spelling, probably Products.PythonScripts.standards
..

>Thanks
>Etienne
>

------_=_NextPart_001_01C1CFE5.010CA1B0
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [Zope] URL encoding in a python script?</TITLE>
</HEAD>
<BODY>
<BR>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Bak @ kedai [<A HREF="mailto:kedai@kedai.com.my">mailto:kedai@kedai.com.my</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, March 20, 2002 4:16 AM</FONT>
<BR><FONT SIZE=2>To: Etienne Labuschagne; Zope User List (E-mail)</FONT>
<BR><FONT SIZE=2>Subject: Re: [Zope] URL encoding in a python script?</FONT>
</P>
<BR>

<P><FONT SIZE=2>&gt;Is there an equivalent to urllib.urlencode for Python scripts?</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;I tried to import urllib and then use the above, but no luck.&nbsp; Am I missing</FONT>
<BR><FONT SIZE=2>&gt;something obvious?</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
</P>

<P><FONT SIZE=2>certain formatting like url_quote, html_quote, etc can be imported</FONT>
<BR><FONT SIZE=2>off the top of my head, try:</FONT>
<BR><FONT SIZE=2>from Products.PythonScript.standard import url_quote</FONT>
</P>

<P><FONT SIZE=2>if it doesnt work, check spelling, probably Products.PythonScripts.standards</FONT>
<BR><FONT SIZE=2>..</FONT>
</P>

<P><FONT SIZE=2>&gt;Thanks</FONT>
<BR><FONT SIZE=2>&gt;Etienne</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C1CFE5.010CA1B0--