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
140
Merge Requests
140
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
07ba7f50
Commit
07ba7f50
authored
Apr 02, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! XMLExportImport: more support pickle protocol 3
🚧
( repair python2 )
parent
1e1e062c
Pipeline
#33802
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
product/ERP5Type/XMLExportImport/ppml.py
product/ERP5Type/XMLExportImport/ppml.py
+7
-7
No files found.
product/ERP5Type/XMLExportImport/ppml.py
View file @
07ba7f50
...
...
@@ -121,7 +121,7 @@ def unconvert(encoding,S):
else
:
return
str2bytes
(
eval
(
b"'"
+
S
.
replace
(
b'
\
n
'
,
b''
)
+
b"'"
))
class
Global
:
class
Global
(
object
)
:
def
__init__
(
self
,
module
,
name
,
mapping
):
self
.
module
=
module
self
.
name
=
name
...
...
@@ -135,14 +135,14 @@ class Global:
return
'%s<%s%s name="%s" module="%s"/>
\
n
'
%
(
' '
*
indent
,
name
,
id
,
self
.
name
,
self
.
module
)
class
Immutable
:
class
Immutable
(
object
)
:
def
__init__
(
self
,
value
):
self
.
value
=
value
def
getValue
(
self
):
return
self
.
value
class
Scalar
:
class
Scalar
(
object
)
:
def
__init__
(
self
,
v
,
mapping
):
self
.
_v
=
v
self
.
mapping
=
mapping
...
...
@@ -215,7 +215,7 @@ class Bytes(String):
pass
class
Wrapper
:
class
Wrapper
(
object
)
:
def
__init__
(
self
,
v
,
mapping
):
self
.
_v
=
v
self
.
mapping
=
mapping
...
...
@@ -235,7 +235,7 @@ class Wrapper:
v
=
v
.
__str__
(
indent
+
2
)
return
'%s<%s%s>
\
n
%s%s</%s>
\
n
'
%
(
i
,
name
,
id
,
v
,
i
,
name
)
class
Collection
:
class
Collection
(
object
)
:
def
__init__
(
self
,
mapping
):
self
.
mapping
=
mapping
...
...
@@ -349,7 +349,7 @@ class Persistent(Wrapper):
return
'%s<%s%s>
\
n
%s%s</%s>
\
n
'
%
(
i
,
name
,
id
,
v
,
i
,
name
)
blanck_line_expression
=
re
.
compile
(
'^ +$'
)
class
NoBlanks
:
class
NoBlanks
(
object
)
:
"""
This allows to ignore at least whitespaces between elements and also
correctly handle string/unicode
...
...
@@ -396,7 +396,7 @@ class NoBlanks:
self
.
append
(
data
)
class
IdentityMapping
:
class
IdentityMapping
(
object
)
:
def
__init__
(
self
):
self
.
resetMapping
()
self
.
immutable
=
{}
...
...
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