[Zope] Python equivalent to Javascript escape/unescape

2006-02-23 Thread Brian Sullivan
I was assuming that it would somehow be easy to do the equivalent to
Javascript escape/unescape functions in a Python script but for some
reason I just can't find out how to do it.

Maybe I can't see the forest for the trees. Anybody out there have a
cluestick to whack me with?
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Python equivalent to Javascript escape/unescape

2006-02-23 Thread Jonathan
- Original Message - 
From: Brian Sullivan [EMAIL PROTECTED]

To: zope list user zope@zope.org
Sent: Thursday, February 23, 2006 10:45 AM
Subject: [Zope] Python equivalent to Javascript escape/unescape



I was assuming that it would somehow be easy to do the equivalent to
Javascript escape/unescape functions in a Python script but for some
reason I just can't find out how to do it.

Maybe I can't see the forest for the trees. Anybody out there have a
cluestick to whack me with?


Try googling:urllib.urlencode

It should get you going in the right direction


Jonathan
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Python equivalent to Javascript escape/unescape

2006-02-23 Thread Brian Sullivan

 I was assuming that it would somehow be easy to do the equivalent to
  Javascript escape/unescape functions in a Python script but for some
  reason I just can't find out how to do it.
 
  Maybe I can't see the forest for the trees. Anybody out there have a
  cluestick to whack me with?

 Try googling:urllib.urlencode

 It should get you going in the right direction



Hmm-- seems to have the stuff I want but also seems not accessible
from a Zope Python script :-(
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Python equivalent to Javascript escape/unescape

2006-02-23 Thread Dan Fairs
On 2/23/06, Brian Sullivan [EMAIL PROTECTED] wrote:
 I was assuming that it would somehow be easy to do the equivalent to
 Javascript escape/unescape functions in a Python script but for some
 reason I just can't find out how to do it.

from Products.PythonScripts.standard import url_quote, url_quote_plus

That what you need?

Cheers,
Dan

--
Dan Fairs [EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )