Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
9bf143d1
Commit
9bf143d1
authored
Jan 03, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "erp5_hal_json_style: XXX hack to edit web site/section"
This reverts commit
a6d073d7
.
parent
feb5856b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py
...rtal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py
+1
-2
No files found.
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py
View file @
9bf143d1
...
@@ -301,7 +301,7 @@ def selectKwargsForCallable(func, initial_kwargs, kwargs_dict):
...
@@ -301,7 +301,7 @@ def selectKwargsForCallable(func, initial_kwargs, kwargs_dict):
url_template_dict
=
{
url_template_dict
=
{
"form_action"
:
"%(traversed_document_url)s/%(action_id)s
?portal_skin=HalRestricted
"
,
"form_action"
:
"%(traversed_document_url)s/%(action_id)s"
,
"traverse_generator"
:
"%(root_url)s/%(script_id)s?mode=traverse"
+
\
"traverse_generator"
:
"%(root_url)s/%(script_id)s?mode=traverse"
+
\
"&relative_url=%(relative_url)s&view=%(view)s"
,
"&relative_url=%(relative_url)s&view=%(view)s"
,
"traverse_generator_action"
:
"%(root_url)s/%(script_id)s?mode=traverse"
+
\
"traverse_generator_action"
:
"%(root_url)s/%(script_id)s?mode=traverse"
+
\
...
@@ -2414,7 +2414,6 @@ is_web_mode = (context.REQUEST.get('current_web_section', None) is not None) or
...
@@ -2414,7 +2414,6 @@ is_web_mode = (context.REQUEST.get('current_web_section', None) is not None) or
# is_web_mode = traversed_document.isWebMode()
# is_web_mode = traversed_document.isWebMode()
if
is_web_mode
:
if
is_web_mode
:
site_root
=
context
.
getWebSectionValue
()
site_root
=
context
.
getWebSectionValue
()
site_root
=
portal
.
web_site_module
.
renderjs_runner
.
hateoas
view_action_type
=
site_root
.
getLayoutProperty
(
"configuration_view_action_category"
,
default
=
'object_view'
)
view_action_type
=
site_root
.
getLayoutProperty
(
"configuration_view_action_category"
,
default
=
'object_view'
)
else
:
else
:
site_root
=
portal
site_root
=
portal
...
...
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