Commit 28f0486a authored by Yoshinori Okuji's avatar Yoshinori Okuji

Allow a restricted environment to call quote via portal_url.quote.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4865 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0b7366cc
...@@ -41,6 +41,7 @@ from Products.ERP5Type.patches import FSZSQLMethod ...@@ -41,6 +41,7 @@ from Products.ERP5Type.patches import FSZSQLMethod
from Products.ERP5Type.patches import ActionInformation from Products.ERP5Type.patches import ActionInformation
from Products.ERP5Type.patches import ActionProviderBase from Products.ERP5Type.patches import ActionProviderBase
from Products.ERP5Type.patches import CookieCrumbler from Products.ERP5Type.patches import CookieCrumbler
from Products.ERP5Type.patches import URLTool
# These symbols are required for backward compatibility # These symbols are required for backward compatibility
from Products.ERP5Type.patches.PropertyManager import ERP5PropertyManager from Products.ERP5Type.patches.PropertyManager import ERP5PropertyManager
......
##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
# Copyright (c) 2005 Nexedi SARL. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
from Products.CMFCore.URLTool import URLTool
from urllib import quote
def URLTool_quote(self, string, **kw):
"""Quote a string according to RFC 2396.
"""
return quote(string, **kw)
URLTool.quote = URLTool_quote
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment