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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
822728aa
Commit
822728aa
authored
Mar 15, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py2/py3: more six.moves.UserDict + SQLJoblib ( broken commit )
parent
9ee15c3f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.BalanceTransaction.py
...tem/portal_components/document.erp5.BalanceTransaction.py
+1
-1
product/CMFActivity/Activity/SQLJoblib.py
product/CMFActivity/Activity/SQLJoblib.py
+6
-6
No files found.
bt5/erp5_accounting/DocumentTemplateItem/portal_components/document.erp5.BalanceTransaction.py
View file @
822728aa
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#
#
##############################################################################
##############################################################################
from
UserDict
import
UserDict
from
six.moves
import
UserDict
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type
import
Permissions
,
PropertySheet
...
...
product/CMFActivity/Activity/SQLJoblib.py
View file @
822728aa
...
@@ -114,13 +114,13 @@ CREATE TABLE %s (
...
@@ -114,13 +114,13 @@ CREATE TABLE %s (
active_process_uid
=
m
.
active_process_uid
active_process_uid
=
m
.
active_process_uid
date
=
m
.
activity_kw
.
get
(
'at_date'
)
date
=
m
.
activity_kw
.
get
(
'at_date'
)
row
=
','
.
join
((
row
=
','
.
join
((
'@uid+%s'
%
i
,
b
'@uid+%s'
%
i
,
quote
(
'/'
.
join
(
m
.
object_path
)),
quote
(
'/'
.
join
(
m
.
object_path
)),
'NULL'
if
active_process_uid
is
None
else
str
(
active_process_uid
),
b
'NULL'
if
active_process_uid
is
None
else
str
(
active_process_uid
),
"UTC_TIMESTAMP(6)"
if
date
is
None
else
quote
(
render_datetime
(
date
)),
b
"UTC_TIMESTAMP(6)"
if
date
is
None
else
quote
(
render_datetime
(
date
)),
quote
(
m
.
method_id
),
quote
(
m
.
method_id
),
'-1'
if
hasDependency
(
m
)
else
'0'
,
b'-1'
if
hasDependency
(
m
)
else
b
'0'
,
str
(
m
.
activity_kw
.
get
(
'priority'
,
1
)),
bytes
(
m
.
activity_kw
.
get
(
'priority'
,
1
)),
quote
(
m
.
getGroupId
()),
quote
(
m
.
getGroupId
()),
quote
(
m
.
activity_kw
.
get
(
'tag'
,
''
)),
quote
(
m
.
activity_kw
.
get
(
'tag'
,
''
)),
quote
(
m
.
activity_kw
.
get
(
'signature'
,
''
)),
quote
(
m
.
activity_kw
.
get
(
'signature'
,
''
)),
...
@@ -156,7 +156,7 @@ CREATE TABLE %s (
...
@@ -156,7 +156,7 @@ CREATE TABLE %s (
m
=
Message
.
load
(
line
.
message
,
uid
=
uid
,
line
=
line
)
m
=
Message
.
load
(
line
.
message
,
uid
=
uid
,
line
=
line
)
try
:
try
:
# Select duplicates.
# Select duplicates.
result
=
db
.
query
(
"SELECT uid FROM message_job"
result
=
db
.
query
(
b
"SELECT uid FROM message_job"
" WHERE processing_node = 0 AND path = %s AND signature = %s"
" WHERE processing_node = 0 AND path = %s AND signature = %s"
" AND method_id = %s AND group_method_id = %s FOR UPDATE"
%
(
" AND method_id = %s AND group_method_id = %s FOR UPDATE"
%
(
quote
(
path
),
quote
(
line
.
signature
),
quote
(
path
),
quote
(
line
.
signature
),
...
...
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