Commit 90a99668 authored by Jérome Perrin's avatar Jérome Perrin

urlQuote method should have never existed.

Use "from Products.PythonScripts.standard import url_quote" instead.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14362 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cea1a7bd
......@@ -45,7 +45,7 @@ from OFS.Traversable import NotFound
from difflib import unified_diff
from cStringIO import StringIO
from zLOG import LOG
from urllib import pathname2url, urlopen, splittype, urlretrieve, quote
from urllib import pathname2url, urlopen, splittype, urlretrieve
import re
from xml.dom.minidom import parse
import struct
......@@ -704,13 +704,6 @@ class TemplateTool (BaseTool):
return result_list
raise BusinessTemplateUnknownError, 'The Business Template %s could not be found on repository %s'%(bt[1], bt[0])
security.declareProtected(Permissions.AccessContentsInformation,
'urlQuote')
def urlQuote(self, url):
""" wrapper for urllib.quote()
"""
return quote(url)
def findProviderInBTList(self, provider_list, bt_list):
"""
Find one provider in provider_list which is present in
......
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