[Zope] url_quote in python scripts.
Bak @ kedai
kedai@kedai.com.my
Tue, 25 Dec 2001 12:22:33 +0800
>Hi,
>
>I'm building hyperlinks in python scripts based on objects (Zope 2.3.3).
>This works till no object has space or special (French) character in its
id.
>Unfortunately, I did dot find the way to have an url_quote in a python
>script (can't import urllib) like in a <dtml-var... url_quote>.
there are some modules we can import. check out the readme/help files
e.g
from Products.PythonScripts.standard import url_quote_plus
return url_quote_plus(srcid)
to make other modules importable, checkout zopelabs.com search for import.
>
>Thanks in advance.
>
>--Gilles
>
>PS: Where's the wish list for next versions of Zope. Some kind of
>"Unrestricted python scripts" available to managers only would be so cool !
>
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>