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
139
Merge Requests
139
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
0843d2b2
Commit
0843d2b2
authored
Nov 15, 2023
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch: support isolation_level__ argument in Shared.DC.ZRDB.DA.__call__().
parent
ac7f47d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5Type/patches/DA.py
product/ERP5Type/patches/DA.py
+2
-2
No files found.
product/ERP5Type/patches/DA.py
View file @
0843d2b2
...
...
@@ -134,7 +134,7 @@ def DA_PUT(self, REQUEST, RESPONSE):
return
RESPONSE
def
DA__call__
(
self
,
REQUEST
=
None
,
__ick__
=
None
,
src__
=
0
,
test__
=
0
,
**
kw
):
def
DA__call__
(
self
,
REQUEST
=
None
,
__ick__
=
None
,
src__
=
0
,
test__
=
0
,
isolation_level__
=
''
,
**
kw
):
"""Call the database method
The arguments to the method should be passed via keyword
...
...
@@ -222,7 +222,7 @@ def DA__call__(self, REQUEST=None, __ick__=None, src__=0, test__=0, **kw):
result
=
self
.
_cached_result
(
DB__
,
query
,
self
.
max_rows_
,
c
)
else
:
try
:
result
=
DB__
.
query
(
query
,
self
.
max_rows_
)
result
=
DB__
.
query
(
query
,
self
.
max_rows_
,
isolation_level
=
isolation_level__
)
except
:
LOG
(
"DA call raise"
,
ERROR
,
"DB = %s, c = %s, query = %s"
%
(
DB__
,
c
,
query
),
error
=
True
)
raise
...
...
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