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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
9ae9d984
Commit
9ae9d984
authored
Oct 11, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Fix test by following up maintream.
parent
bd93529d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/ERP5Document_getHateoas.py
...al_skins/slapos_hal_json_style/ERP5Document_getHateoas.py
+3
-2
No files found.
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/ERP5Document_getHateoas.py
View file @
9ae9d984
...
...
@@ -15,7 +15,7 @@ url_template_dict = {
"{&relative_url,view}"
,
"search_template"
:
"%(root_url)s/%(script_id)s?mode=search"
+
\
"{&query,select_list*,limit*}"
,
"new_content_action"
:
"%(root_url)s/%(script_id)s?mode=newContent"
,
"new_content_action"
:
"%(root_
is
url)s/%(script_id)s?mode=newContent"
,
# XXX View is set by default to empty
"document_hal"
:
"%(root_url)s/%(script_id)s?mode=traverse"
+
\
"&relative_url=%(relative_url)s"
,
...
...
@@ -279,7 +279,8 @@ portal = context.getPortalObject()
sql_catalog
=
portal
.
portal_catalog
.
getSQLCatalog
()
# Calculate the site root to prevent unexpected browsing
is_web_mode
=
(
context
.
REQUEST
.
get
(
'current_web_section'
,
None
)
is
not
None
)
or
context
.
isWebMode
()
is_web_mode
=
(
context
.
REQUEST
.
get
(
'current_web_section'
,
None
)
is
not
None
)
or
(
hasattr
(
context
,
'isWebMode'
)
and
context
.
isWebMode
())
# is_web_mode = traversed_document.isWebMode()
if
is_web_mode
:
site_root
=
context
.
getWebSiteValue
()
...
...
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