Merging a dead branch (messed up with 'amend')
This commit is contained in:
commit
85c88281c9
@ -79,6 +79,12 @@ def loadxml(el, datatype):
|
|||||||
loadxml(item.find('value'), datatype.value_type))
|
loadxml(item.find('value'), datatype.value_type))
|
||||||
for item in el.findall('item')
|
for item in el.findall('item')
|
||||||
))
|
))
|
||||||
|
elif isdict(datatype):
|
||||||
|
return dict((
|
||||||
|
(loadxml(item.find('key'), datatype.key_type),
|
||||||
|
loadxml(item.find('value'), datatype.value_type))
|
||||||
|
for item in el.findall('item')
|
||||||
|
))
|
||||||
elif len(el):
|
elif len(el):
|
||||||
d = {}
|
d = {}
|
||||||
for attr in datatype._wsme_attributes:
|
for attr in datatype._wsme_attributes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user