Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
48b1447b
Commit
48b1447b
authored
Jan 04, 2017
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_hal_json_style] Uglily unquote '+' character in jump url
parent
3f1110c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py
...rtal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py
+5
-1
No files found.
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py
View file @
48b1447b
...
@@ -808,8 +808,12 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
...
@@ -808,8 +808,12 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
if
erp5_action_key
==
'object_jump'
:
if
erp5_action_key
==
'object_jump'
:
if
'Base_jumpToRelatedObject?'
in
view_action
[
'url'
]:
if
'Base_jumpToRelatedObject?'
in
view_action
[
'url'
]:
# Fetch the URL arguments
# Fetch the URL arguments
# XXX Correctly unquote arguments
argument_dict
=
dict
([
x
.
split
(
'='
)
for
x
in
view_action
[
'url'
].
split
(
'?'
,
1
)[
1
].
split
(
"&"
)])
argument_dict
=
dict
([
x
.
split
(
'='
)
for
x
in
view_action
[
'url'
].
split
(
'?'
,
1
)[
1
].
split
(
"&"
)])
final_argument_dict
=
{
'portal_type'
:
argument_dict
.
pop
(
'portal_type'
,
None
)}
jump_portal_type
=
argument_dict
.
pop
(
'portal_type'
,
None
)
if
(
jump_portal_type
is
not
None
):
jump_portal_type
=
jump_portal_type
.
replace
(
'+'
,
' '
)
final_argument_dict
=
{
'portal_type'
:
jump_portal_type
}
jump_related
=
argument_dict
.
pop
(
'related'
,
1
)
jump_related
=
argument_dict
.
pop
(
'related'
,
1
)
if
(
jump_related
):
if
(
jump_related
):
jump_related_suffix
=
''
jump_related_suffix
=
''
...
...
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