sobjects/cwxmlparser.py
changeset 10758 a34edc1057c0
parent 10756 3eb527ce5f0f
child 11034 75d752e6daf7
equal deleted inserted replaced
10757:f73a9a884534 10758:a34edc1057c0
   204 
   204 
   205         * `item` is an {attribute: value} dictionary
   205         * `item` is an {attribute: value} dictionary
   206         * `rels` is for relations and structured as
   206         * `rels` is for relations and structured as
   207            {role: {relation: [(related item, related rels)...]}
   207            {role: {relation: [(related item, related rels)...]}
   208         """
   208         """
   209         entity = self.extid2entity(str(item['cwuri']), item['cwtype'],
   209         entity = self.extid2entity(item['cwuri'].encode('ascii'), item['cwtype'],
   210                                    cwsource=item['cwsource'], item=item,
   210                                    cwsource=item['cwsource'], item=item,
   211                                    raise_on_error=raise_on_error)
   211                                    raise_on_error=raise_on_error)
   212         if entity is None:
   212         if entity is None:
   213             return None
   213             return None
   214         if entity.eid in self._processed_entities:
   214         if entity.eid in self._processed_entities: