Commit d4c252c1 authored by Rafael Monnerat's avatar Rafael Monnerat

py3: Import parse_qs from six

parent 20406684
Pipeline #38295 failed with stage
in 0 seconds
...@@ -39,7 +39,7 @@ from Products.ERP5Type import Permissions ...@@ -39,7 +39,7 @@ from Products.ERP5Type import Permissions
from Products.ERP5Type.Cache import CachingMethod from Products.ERP5Type.Cache import CachingMethod
from erp5.component.module.SlapOSCloud import _assertACI from erp5.component.module.SlapOSCloud import _assertACI
from Products.ERP5Type.Cache import DEFAULT_CACHE_SCOPE from Products.ERP5Type.Cache import DEFAULT_CACHE_SCOPE
from six.moves.urllib.parse import urlparse from six.moves.urllib.parse import urlparse, parse_qs
from lxml import etree from lxml import etree
try: try:
...@@ -474,7 +474,7 @@ class SlapTool(BaseTool): ...@@ -474,7 +474,7 @@ class SlapTool(BaseTool):
""" """
portal = self.getPortalObject() portal = self.getPortalObject()
# in http post, parameter is ignored in url but is inside request body # in http post, parameter is ignored in url but is inside request body
query = urlparse.parse_qs(self.REQUEST.get('QUERY_STRING')) query = parse_qs(self.REQUEST.get('QUERY_STRING'))
ingestion_policy = getattr(portal.portal_ingestion_policies, query['ingestion_policy'][0], None) ingestion_policy = getattr(portal.portal_ingestion_policies, query['ingestion_policy'][0], None)
if ingestion_policy is None: if ingestion_policy is None:
......
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