[Zope-Checkins] CVS: Zope/lib/python/Products/PythonScripts/help - standard.py:1.6
Casey Duncan
casey@zope.com
Fri, 16 Aug 2002 10:31:14 -0400
Update of /cvs-repository/Zope/lib/python/Products/PythonScripts/help
In directory cvs.zope.org:/tmp/cvs-serv15471/lib/python/Products/PythonScripts/help
Modified Files:
standard.py
Log Message:
Collector #186, added urlencode to PythonScripts.standard
=== Zope/lib/python/Products/PythonScripts/help/standard.py 1.5 => 1.6 ===
--- Zope/lib/python/Products/PythonScripts/help/standard.py:1.5 Wed Aug 14 18:25:08 2002
+++ Zope/lib/python/Products/PythonScripts/help/standard.py Fri Aug 16 10:31:14 2002
@@ -51,12 +51,11 @@
See Also
- "Python 'urllib'
- module":http://www.python.org/doc/current/lib/module-urllib.html
+ "Python 'urllib' module":http://www.python.org/doc/current/lib/module-urllib.html
'quote' function.
"""
-
+
def url_quote_plus(s):
"""
Like url_quote but also replace blank space characters with
@@ -64,8 +63,7 @@
See Also
- "Python 'urllib'
- module":http://www.python.org/doc/current/lib/module-urllib.html
+ "Python 'urllib' module":http://www.python.org/doc/current/lib/module-urllib.html
'quote_plus' function.
"""
@@ -77,8 +75,7 @@
See Also
- "Python 'urllib'
- module":http://www.python.org/doc/current/lib/module-urllib.html
+ "Python 'urllib' module":http://www.python.org/doc/current/lib/module-urllib.html
'unquote' function.
"""
@@ -89,10 +86,21 @@
See Also
- "Python 'urllib'
- module":http://www.python.org/doc/current/lib/module-urllib.html
+ "Python 'urllib' module":http://www.python.org/doc/current/lib/module-urllib.html
'unquote_plus' function.
+ """
+
+def urlencode(query, doseq=0):
+ """
+ Convert a mapping object (such as a dictionary) or a sequence of
+ two-element tuples to a URL encoded query string. Useful for generating
+ query strings programmatically.
+
+ See Also
+
+ "Python 'urllib' module":http://www.python.org/doc/current/lib/module-urllib.html
+ 'urlencode' function.
"""
def newline_to_br(s):