[IMP] allow to unset fields in yaml import

lp bug: https://launchpad.net/bugs/873456 fixed

bzr revid: dmitrijs.ledkovs@credativ.co.uk-20111013162021-225j5kl25bg9su3a
This commit is contained in:
Dmitrijs Ledkovs
2011-10-13 17:20:21 +01:00
parent c18e1fc203
commit d0f70e9b29
+2
View File
@@ -164,6 +164,8 @@ class YamlInterpreter(object):
self.logger.log(logging.ERROR, 'id: %s is to long (max: 64)', id)
def get_id(self, xml_id):
if xml_id == None:
return None
if not xml_id:
raise YamlImportException("The xml_id should be a non empty string.")
if isinstance(xml_id, types.IntType):