Commit 4ae3be7f authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

[sobjects] fix fresh.workcases importer

In extentities generator, extid is cwuri from database which is a text field.
So in python3 exteid2eid[extid] wasn't matching anything because extid was bytes.
Use text extid instead.
parent 923b1d1e2d12
...@@ -52,7 +52,6 @@ class CWClientLibDataFeedParser(datafeed.DataFeedParser): ...@@ -52,7 +52,6 @@ class CWClientLibDataFeedParser(datafeed.DataFeedParser):
' X cw_source S, S eid %(s)s'.format(etype), ' X cw_source S, S eid %(s)s'.format(etype),
{'s': self.source.eid}) {'s': self.source.eid})
for extid, eid in rset: for extid, eid in rset:
extid = extid.encode('ascii')
self._source_uris[extid] = (eid, etype) self._source_uris[extid] = (eid, etype)
yield extid, eid yield extid, eid
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment