Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
334e4816
Commit
334e4816
authored
Nov 27, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py3: Import parse_qs from six
parent
659657b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
master/bt5/slapos_slap_tool/ToolComponentTemplateItem/portal_components/tool.erp5.SlapTool.py
...onentTemplateItem/portal_components/tool.erp5.SlapTool.py
+2
-2
No files found.
master/bt5/slapos_slap_tool/ToolComponentTemplateItem/portal_components/tool.erp5.SlapTool.py
View file @
334e4816
...
...
@@ -39,7 +39,7 @@ from Products.ERP5Type import Permissions
from
Products.ERP5Type.Cache
import
CachingMethod
from
erp5.component.module.SlapOSCloud
import
_assertACI
from
Products.ERP5Type.Cache
import
DEFAULT_CACHE_SCOPE
from
six.moves.urllib.parse
import
urlparse
from
six.moves.urllib.parse
import
parse_qs
from
lxml
import
etree
try
:
...
...
@@ -474,7 +474,7 @@ class SlapTool(BaseTool):
"""
portal
=
self
.
getPortalObject
()
# 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
)
if
ingestion_policy
is
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment