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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
794fb635
Commit
794fb635
authored
Nov 24, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui_test: explicitly set response content-type in helper HTML scripts
parent
2fee6617
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
0 deletions
+6
-0
bt5/erp5_officejs_ui_test/SkinTemplateItem/portal_skins/erp5_officejs_ui_test/ERP5Site_printParameterAsHTMLTitle.py
...p5_officejs_ui_test/ERP5Site_printParameterAsHTMLTitle.py
+1
-0
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Bar_viewCreationDateModificationDateAndOwner.py
...5_ui_test/Bar_viewCreationDateModificationDateAndOwner.py
+1
-0
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_getSelectionCheckedUidsAsHtml.py
...rp5_ui_test/ListBoxZuite_getSelectionCheckedUidsAsHtml.py
+1
-0
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_testFolderWorkflowActionCheckCustomDialogWorkflowHistory.py
...stFolderWorkflowActionCheckCustomDialogWorkflowHistory.py
+1
-0
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_testFolderWorkflowActionCheckWorkflowHistory.py
...est/Zuite_testFolderWorkflowActionCheckWorkflowHistory.py
+1
-0
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_testFolderWorkflowActionFilteredSelectionCheckWorkflowHistory.py
...derWorkflowActionFilteredSelectionCheckWorkflowHistory.py
+1
-0
No files found.
bt5/erp5_officejs_ui_test/SkinTemplateItem/portal_skins/erp5_officejs_ui_test/ERP5Site_printParameterAsHTMLTitle.py
View file @
794fb635
container
.
REQUEST
.
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/html'
)
print
"<html><body><h1 class='test-script-title'>Title is : "
+
parameter
+
"</h1></body></html>"
print
"<html><body><h1 class='test-script-title'>Title is : "
+
parameter
+
"</h1></body></html>"
return
printed
return
printed
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Bar_viewCreationDateModificationDateAndOwner.py
View file @
794fb635
...
@@ -18,6 +18,7 @@ def format_date(date):
...
@@ -18,6 +18,7 @@ def format_date(date):
creation_date
=
format_date
(
context
.
getCreationDate
())
creation_date
=
format_date
(
context
.
getCreationDate
())
modification_date
=
format_date
(
context
.
getModificationDate
())
modification_date
=
format_date
(
context
.
getModificationDate
())
owner
=
context
.
Base_getOwnerTitle
()
owner
=
context
.
Base_getOwnerTitle
()
container
.
REQUEST
.
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/html'
)
return
"""
return
"""
<html>
<html>
<body>
<body>
...
...
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_getSelectionCheckedUidsAsHtml.py
View file @
794fb635
...
@@ -16,6 +16,7 @@ checked_uids_objs.sort(key=lambda x:x.getId())
...
@@ -16,6 +16,7 @@ checked_uids_objs.sort(key=lambda x:x.getId())
# we produce html for easier Selenium parsing
# we produce html for easier Selenium parsing
table
=
"
\
n
"
.
join
([
"<tr><td>%s</td><td>%s</td></tr>"
%
(
table
=
"
\
n
"
.
join
([
"<tr><td>%s</td><td>%s</td></tr>"
%
(
x
.
getUid
(),
x
.
getId
())
for
x
in
checked_uids_objs
])
x
.
getUid
(),
x
.
getId
())
for
x
in
checked_uids_objs
])
container
.
REQUEST
.
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/html'
)
return
"""<html>
return
"""<html>
<head><title>len(checked_uids) == %d</title></head>
<head><title>len(checked_uids) == %d</title></head>
<body>
<body>
...
...
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_testFolderWorkflowActionCheckCustomDialogWorkflowHistory.py
View file @
794fb635
...
@@ -42,4 +42,5 @@ if not error_list:
...
@@ -42,4 +42,5 @@ if not error_list:
if
error_list
:
if
error_list
:
result
=
''
.
join
(
error_list
)
result
=
''
.
join
(
error_list
)
container
.
REQUEST
.
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/html'
)
return
'<html><body><span id="result">%s</span></body></html>'
%
result
return
'<html><body><span id="result">%s</span></body></html>'
%
result
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_testFolderWorkflowActionCheckWorkflowHistory.py
View file @
794fb635
...
@@ -35,4 +35,5 @@ if not error_list:
...
@@ -35,4 +35,5 @@ if not error_list:
if
error_list
:
if
error_list
:
result
=
''
.
join
(
error_list
)
result
=
''
.
join
(
error_list
)
container
.
REQUEST
.
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/html'
)
return
'<html><body><span id="result">%s</span></body></html>'
%
result
return
'<html><body><span id="result">%s</span></body></html>'
%
result
bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Zuite_testFolderWorkflowActionFilteredSelectionCheckWorkflowHistory.py
View file @
794fb635
...
@@ -33,4 +33,5 @@ if not error_list:
...
@@ -33,4 +33,5 @@ if not error_list:
if
error_list
:
if
error_list
:
result
=
''
.
join
(
error_list
)
result
=
''
.
join
(
error_list
)
container
.
REQUEST
.
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/html'
)
return
'<html><body><span id="result">%s</span></body></html>'
%
result
return
'<html><body><span id="result">%s</span></body></html>'
%
result
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