self.logger.log(logging.ERROR, 'id: %s is to long (max: 64)', id)
def get_id(self, xml_id):
- if xml_id is False:
- 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):
++ if xml_id is False or xml_id is None:
+ return False
+ #if not xml_id:
+ # raise YamlImportException("The xml_id should be a non empty string.")
+ elif isinstance(xml_id, types.IntType):
id = xml_id
elif xml_id in self.id_map:
id = self.id_map[xml_id]