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
74e63f28
Commit
74e63f28
authored
Mar 08, 2023
by
Cédric Le Ninivin
Committed by
Titouan Soulard
Nov 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_api_style: Add condition on jIOWebSection to handle livetests
parent
53155c21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_api_style/DocumentTemplateItem/portal_components/document.erp5.jIOWebSection.py
...lateItem/portal_components/document.erp5.jIOWebSection.py
+2
-2
No files found.
bt5/erp5_api_style/DocumentTemplateItem/portal_components/document.erp5.jIOWebSection.py
View file @
74e63f28
...
@@ -108,7 +108,7 @@ class jIOWebSection(WebSection):
...
@@ -108,7 +108,7 @@ class jIOWebSection(WebSection):
__bobo_traverse__ from DocumentExtensibleTraversableMixin is not called
__bobo_traverse__ from DocumentExtensibleTraversableMixin is not called
"""
"""
# Register current web site physical path for later URL generation
# Register current web site physical path for later URL generation
if
self
.
REQUEST
.
REQUEST_METHOD
==
"GET"
:
if
not
self
.
REQUEST
.
get
(
"live_test"
,
False
)
and
self
.
REQUEST
.
REQUEST_METHOD
==
"GET"
:
return
self
.
_asjIOStyle
(
mode
=
"get"
,
text_content
=
self
.
REQUEST
.
form
.
keys
()[
0
])
return
self
.
_asjIOStyle
(
mode
=
"get"
,
text_content
=
self
.
REQUEST
.
form
.
keys
()[
0
])
return
self
.
_asjIOStyle
(
mode
=
"get"
,
text_content
=
self
.
REQUEST
.
get
(
'BODY'
))
return
self
.
_asjIOStyle
(
mode
=
"get"
,
text_content
=
self
.
REQUEST
.
get
(
'BODY'
))
...
@@ -137,6 +137,6 @@ class jIOWebSection(WebSection):
...
@@ -137,6 +137,6 @@ class jIOWebSection(WebSection):
__bobo_traverse__ from DocumentExtensibleTraversableMixin is not called
__bobo_traverse__ from DocumentExtensibleTraversableMixin is not called
"""
"""
# Register current web site physical path for later URL generation
# Register current web site physical path for later URL generation
if
self
.
REQUEST
.
REQUEST_METHOD
==
"GET"
:
if
not
self
.
REQUEST
.
get
(
"live_test"
,
False
)
and
self
.
REQUEST
.
REQUEST_METHOD
==
"GET"
:
return
self
.
_asjIOStyle
(
mode
=
"allDocs"
,
text_content
=
self
.
REQUEST
.
form
.
keys
()[
0
])
return
self
.
_asjIOStyle
(
mode
=
"allDocs"
,
text_content
=
self
.
REQUEST
.
form
.
keys
()[
0
])
return
self
.
_asjIOStyle
(
mode
=
"allDocs"
,
text_content
=
self
.
REQUEST
.
get
(
'BODY'
))
return
self
.
_asjIOStyle
(
mode
=
"allDocs"
,
text_content
=
self
.
REQUEST
.
get
(
'BODY'
))
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