[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user