[Zope-Checkins] CVS: Zope/lib/python/Products/PythonScripts/help - standard.py:1.3
Chris McDonough
chrism@zope.com
Wed, 14 Aug 2002 11:46:59 -0400
Update of /cvs-repository/Zope/lib/python/Products/PythonScripts/help
In directory cvs.zope.org:/tmp/cvs-serv25172/Products/PythonScripts/help
Modified Files:
standard.py
Log Message:
Added 'url_unquote' and 'url_unquote_plus' modifiers to DTML as
well as made these functions available in PythonScripts via
the 'standard' module.
=== Zope/lib/python/Products/PythonScripts/help/standard.py 1.2 => 1.3 ===
--- Zope/lib/python/Products/PythonScripts/help/standard.py:1.2 Wed Nov 14 14:54:25 2001
+++ Zope/lib/python/Products/PythonScripts/help/standard.py Wed Aug 14 11:46:58 2002
@@ -70,6 +70,28 @@
"""
+def url_unquote(s):
+ """
+ Convert HTML character entities in strings back to their real values.
+
+ See Also
+
+ "Python 'urllib'
+ module":http://www.python.org/doc/current/lib/module-urllib.html
+ 'url_unquote' function.
+ """
+
+def url_unquote(s):
+ """
+ Like url_unquote, but also replace '+' characters with spaces.
+
+ See Also
+
+ "Python 'urllib'
+ module":http://www.python.org/doc/current/lib/module-urllib.html
+ 'url_unquote_plus' function.
+ """
+
def newline_to_br(s):
"""
Convert newlines and carriage-return and newline combinations to