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
81c0dc80
Commit
81c0dc80
authored
Apr 20, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
💥
export protocol 1 on py2
parent
0b02e07b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
product/ERP5Type/XMLExportImport/__init__.py
product/ERP5Type/XMLExportImport/__init__.py
+1
-1
product/ERP5Type/XMLExportImport/ppml.py
product/ERP5Type/XMLExportImport/ppml.py
+20
-0
No files found.
product/ERP5Type/XMLExportImport/__init__.py
View file @
81c0dc80
...
...
@@ -281,7 +281,7 @@ def reorderPickle(jar, p):
unpickler
.
persistent_load
=
persistent_load
newp
=
BytesIO
()
pickler
=
OrderedPickler
(
newp
,
3
)
pickler
=
OrderedPickler
(
newp
,
1
)
#3 if six.PY3 else 1
)
pickler
.
persistent_id
=
persistent_id
classdef
=
unpickler
.
load
()
...
...
product/ERP5Type/XMLExportImport/ppml.py
View file @
81c0dc80
...
...
@@ -776,6 +776,26 @@ class ToXMLUnpickler(Unpickler):
if
six
.
PY2
:
dispatch
[
code
]
=
unsupported_opcode
(
code
)
dispatch
[
code
[
0
]]
=
unsupported_opcode
(
code
)
dispatch
[
code
]
=
unsupported_opcode
(
code
)
dispatch
[
PERSID
]
=
unsupported_opcode
(
'PERSID'
)
dispatch
[
INT
]
=
unsupported_opcode
(
'INT'
)
dispatch
[
LONG
]
=
unsupported_opcode
(
'LONG'
)
dispatch
[
FLOAT
]
=
unsupported_opcode
(
'FLOAT'
)
dispatch
[
STRING
]
=
unsupported_opcode
(
'STRING'
)
dispatch
[
UNICODE
]
=
unsupported_opcode
(
'UNICODE'
)
dispatch
[
GET
]
=
unsupported_opcode
(
'GET'
)
dispatch
[
PUT
]
=
unsupported_opcode
(
'PUT'
)
def
load_int
(
self
):
self
.
append
(
Int
(
int
(
self
.
readline
()[:
-
1
]),
self
.
id_mapping
))
dispatch
[
INT
]
=
load_int
class
LogCall
:
def
__init__
(
self
,
func
):
...
...
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