Commit d8ddd367 authored by Nicolas Delaby's avatar Nicolas Delaby

import missing Element class, fix find expression (add namespace)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29550 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8995235e
......@@ -35,6 +35,7 @@ from ERP5Diff import ERP5Diff
from zLOG import LOG, INFO
from lxml import etree
from lxml.etree import Element
from lxml.builder import ElementMaker
from SyncCode import SYNCML_NAMESPACE
nsmap = {'syncml' : SYNCML_NAMESPACE}
......@@ -260,7 +261,7 @@ class XMLSyncUtilsMixin(SyncCode):
)
)
)))
data_store = xml.find('Item/Data/DevInf/DataStore')
data_store = xml.find('{%(ns)s}Item/{%(ns)s}Data/{%(ns)s}DevInf/{%(ns)s}DataStore' % {'ns': SYNCML_NAMESPACE})
tx_element_list = []
rx_element_list = []
for type in conduit.getCapabilitiesCTTypeList():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment