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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
9eb05e32
Commit
9eb05e32
authored
Dec 03, 2020
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Fix some monkey-patches to make them compatible with ZODB5
parent
95a75303
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
product/ERP5Type/patches/XMLExportImport.py
product/ERP5Type/patches/XMLExportImport.py
+4
-0
No files found.
product/ERP5Type/patches/XMLExportImport.py
View file @
9eb05e32
...
...
@@ -14,6 +14,8 @@
# Make sure the xml export will be ordered
from
functools
import
partial
from
inspect
import
getargspec
from
ZODB.utils
import
u64
,
p64
from
Shared.DC.xml
import
ppml
from
base64
import
encodestring
...
...
@@ -102,6 +104,8 @@ def exportXML(jar, oid, file=None):
# can have values that have a shorter representation in 'repr' instead of
# 'base64' (see ppml.convert) and ppml.String does not support this.
load
=
jar
.
_storage
.
load
if
'version'
in
getargspec
(
load
).
args
:
# BBB: ZODB<5 (TmpStore)
load
=
partial
(
load
,
version
=
''
)
pickle_dict
=
{
oid
:
None
}
max_cache
=
[
1e7
]
# do not cache more than 10MB of pickle data
def
getReorderedPickle
(
oid
):
...
...
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