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
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
erp5
Commits
885b3f37
Commit
885b3f37
authored
Sep 30, 2022
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zope4: sortKey should be str in transaction 1.4.1 or later.
parent
545a7c20
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
product/CMFActivity/ActivityBuffer.py
product/CMFActivity/ActivityBuffer.py
+1
-1
product/CMFActivity/ActivityConnection.py
product/CMFActivity/ActivityConnection.py
+1
-1
product/ERP5Type/TransactionalVariable.py
product/ERP5Type/TransactionalVariable.py
+2
-2
No files found.
product/CMFActivity/ActivityBuffer.py
View file @
885b3f37
...
@@ -76,4 +76,4 @@ class ActivityBuffer(TM):
...
@@ -76,4 +76,4 @@ class ActivityBuffer(TM):
def
sortKey
(
self
,
*
ignored
):
def
sortKey
(
self
,
*
ignored
):
"""Activities must be finished before databases commit transactions."""
"""Activities must be finished before databases commit transactions."""
return
-
1
return
chr
(
1
)
product/CMFActivity/ActivityConnection.py
View file @
885b3f37
...
@@ -66,4 +66,4 @@ InitializeClass(ActivityConnection)
...
@@ -66,4 +66,4 @@ InitializeClass(ActivityConnection)
class
ActivityDB
(
DB
):
class
ActivityDB
(
DB
):
_sort_key
=
(
0
,
)
_sort_key
=
chr
(
2
)
product/ERP5Type/TransactionalVariable.py
View file @
885b3f37
...
@@ -70,7 +70,7 @@ class TransactionalVariable(dict):
...
@@ -70,7 +70,7 @@ class TransactionalVariable(dict):
_unregistered
=
True
_unregistered
=
True
def
sortKey
(
self
):
def
sortKey
(
self
):
return
None
return
chr
(
0
)
commit
=
tpc_vote
=
tpc_begin
=
tpc_abort
=
lambda
self
,
transaction
:
None
commit
=
tpc_vote
=
tpc_begin
=
tpc_abort
=
lambda
self
,
transaction
:
None
...
@@ -127,7 +127,7 @@ class TransactionalResource(object):
...
@@ -127,7 +127,7 @@ class TransactionalResource(object):
return
not
(
args
in
tv
or
tv
.
add
(
args
))
return
not
(
args
in
tv
or
tv
.
add
(
args
))
def
sortKey
(
self
):
def
sortKey
(
self
):
return
1
return
chr
(
1
)
abort
=
commit
=
tpc_vote
=
tpc_begin
=
tpc_finish
=
tpc_abort
=
\
abort
=
commit
=
tpc_vote
=
tpc_begin
=
tpc_finish
=
tpc_abort
=
\
lambda
self
,
transaction
:
None
lambda
self
,
transaction
:
None
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