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
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
779c0415
Commit
779c0415
authored
Oct 01, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syncml: use safe variant of xml_marshaller
parent
fe855134
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
bt5/erp5_syncml/ModuleComponentTemplateItem/portal_components/module.erp5.ERP5Conduit.py
...TemplateItem/portal_components/module.erp5.ERP5Conduit.py
+9
-1
No files found.
bt5/erp5_syncml/ModuleComponentTemplateItem/portal_components/module.erp5.ERP5Conduit.py
View file @
779c0415
...
...
@@ -43,7 +43,7 @@ import re
from
lxml
import
etree
from
lxml.etree
import
Element
parser
=
etree
.
XMLParser
(
remove_blank_text
=
True
)
from
xml_marshaller.xml_marshaller
import
load_tree
as
u
nmarshaller
from
xml_marshaller.xml_marshaller
import
U
nmarshaller
from
xupdate_processor
import
xuproc
from
base64
import
standard_b64decode
from
zope.interface
import
implementer
...
...
@@ -57,6 +57,14 @@ from hashlib import sha1
from
erp5.component.module.SyncMLConstant
import
XUPDATE_ELEMENT
,
\
XUPDATE_INSERT_OR_ADD_LIST
,
XUPDATE_DEL
,
XUPDATE_UPDATE
,
XUPDATE_INSERT_LIST
from
erp5.component.interface.IConduit
import
IConduit
class
SafeUnmarshaller
(
Unmarshaller
):
def
find_class
(
self
,
module
,
name
):
raise
ValueError
(
"Refusing to unmarshall {}.{}"
.
format
(
module
,
name
))
unmarshaller
=
SafeUnmarshaller
().
load_tree
# Constant
HISTORY_TAG
=
'workflow_action'
XML_OBJECT_TAG
=
'object'
...
...
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