if len(v) == 0: continue
for x in v:
e = etree.Element(field.uri)
- e.text = unicode(x)
+ if x is not None:
+ e.text = unicode(x)
description.append(e)
else:
e = etree.Element(field.uri)
if v is not None:
if field.multiple:
if len(v) == 0: continue
- v = [ unicode(x) for x in v if v is not None ]
+ v = [ unicode(x) for x in v if x is not None ]
else:
v = unicode(v)
if v is not None:
if field.multiple:
if len(v) == 0: continue
- v = [ unicode(x) for x in v if v is not None ]
+ v = [ unicode(x) for x in v if x is not None ]
else:
v = unicode(v)
result[field.name] = v