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
ae0c7be8
Commit
ae0c7be8
authored
Aug 12, 2024
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New ZODB uses zodbpickle instead of cPickle.
parent
5daa4ea7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5Type.py
...tTemplateItem/portal_components/test.erp5.testERP5Type.py
+2
-5
product/ERP5Type/mixin/temporary.py
product/ERP5Type/mixin/temporary.py
+1
-5
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5Type.py
View file @
ae0c7be8
...
...
@@ -26,10 +26,7 @@
#
##############################################################################
try
:
from
ZODB._compat
import
cPickle
except
ImportError
:
# BBB: ZODB < 4
import
cPickle
from
zodbpickle.pickle
import
PicklingError
import
unittest
import
sys
import
mock
...
...
@@ -330,7 +327,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
portal
.
person_module
.
_setObject
(
o
.
getId
(),
aq_base
(
o
))
try
:
self
.
commit
()
except
cPickle
.
PicklingError
:
except
PicklingError
:
self
.
abort
()
else
:
self
.
fail
(
"No exception raised when storing explicitly a temp object"
...
...
product/ERP5Type/mixin/temporary.py
View file @
ae0c7be8
...
...
@@ -26,11 +26,7 @@
#
##############################################################################
try
:
from
ZODB._compat
import
cPickle
PicklingError
=
cPickle
.
PicklingError
except
ImportError
:
# BBB: ZODB < 4
from
six.moves.cPickle
import
PicklingError
from
zodbpickle.pickle
import
PicklingError
from
Acquisition
import
aq_base
from
Products.ERP5Type.Accessor.Constant
import
PropertyGetter
as
\
PropertyConstantGetter
...
...
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