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
973ab86d
Commit
973ab86d
authored
Feb 09, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_browser: check request method
parent
aa1b9145
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
bt5/erp5_sql_browser/SkinTemplateItem/portal_skins/erp5_sql_browser/ZMySQLDAConnection_getQueryResultAsJSON.py
...p5_sql_browser/ZMySQLDAConnection_getQueryResultAsJSON.py
+6
-1
No files found.
bt5/erp5_sql_browser/SkinTemplateItem/portal_skins/erp5_sql_browser/ZMySQLDAConnection_getQueryResultAsJSON.py
View file @
973ab86d
...
@@ -5,7 +5,12 @@ import json
...
@@ -5,7 +5,12 @@ import json
from
DateTime
import
DateTime
from
DateTime
import
DateTime
import
six
import
six
response
=
container
.
REQUEST
.
RESPONSE
request
=
container
.
REQUEST
if
request
[
'REQUEST_METHOD'
]
!=
'POST'
:
from
zExceptions
import
BadRequest
raise
BadRequest
response
=
request
.
RESPONSE
start
=
time
.
time
()
start
=
time
.
time
()
try
:
try
:
results
=
context
.
manage_test
(
query
)
results
=
context
.
manage_test
(
query
)
...
...
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