Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Binh
erp5
Commits
1f24f621
Commit
1f24f621
authored
7 years ago
by
Gabriel Monnerat
Browse files
Options
Download
Email Patches
Plain Diff
Revert "Partial support for more recent versions of ZODB"
This reverts commit
4921db63
. Wrong branch
parent
4921db63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
product/ERP5Type/patches/DemoStorage.py
product/ERP5Type/patches/DemoStorage.py
+3
-3
product/ERP5Type/patches/XMLExportImport.py
product/ERP5Type/patches/XMLExportImport.py
+1
-5
No files found.
product/ERP5Type/patches/DemoStorage.py
View file @
1f24f621
...
...
@@ -16,6 +16,8 @@ from ZODB import DemoStorage as _DemoStorage
from
ZODB.ConflictResolution
import
ConflictResolvingStorage
,
ResolvedSerial
from
ZODB.POSException
import
ConflictError
assert
not
issubclass
(
_DemoStorage
.
DemoStorage
,
ConflictResolvingStorage
)
class
DemoStorage
(
_DemoStorage
.
DemoStorage
,
ConflictResolvingStorage
):
##
# Implement conflict resolution for DemoStorage
...
...
@@ -31,6 +33,4 @@ class DemoStorage(_DemoStorage.DemoStorage, ConflictResolvingStorage):
self
.
changes
.
store
(
oid
,
old
,
rdata
,
''
,
transaction
)
return
ResolvedSerial
if
not
issubclass
(
_DemoStorage
.
DemoStorage
,
ConflictResolvingStorage
):
# BBB: ZODB < 4.3
_DemoStorage
.
DemoStorage
=
DemoStorage
_DemoStorage
.
DemoStorage
=
DemoStorage
This diff is collapsed.
Click to expand it.
product/ERP5Type/patches/XMLExportImport.py
View file @
1f24f621
...
...
@@ -59,11 +59,7 @@ class OrderedPickler(Pickler):
dispatch
[
PyStringMap
]
=
save_dict
def
reorderPickle
(
jar
,
p
):
try
:
from
ZODB._compat
import
Unpickler
,
Pickler
except
ImportError
:
# BBB: ZODB 3.10
from
ZODB.ExportImport
import
Unpickler
,
Pickler
from
ZODB.ExportImport
import
Ghost
,
persistent_id
from
ZODB.ExportImport
import
Ghost
,
Unpickler
,
Pickler
,
StringIO
,
persistent_id
oids
=
{}
storage
=
jar
.
_storage
...
...
This diff is collapsed.
Click to expand it.
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