[ldapfeed] fix encode error during initial user import
Closes #3539196.
--- a/sobjects/ldapparser.py Fri Feb 14 10:39:16 2014 +0100
+++ b/sobjects/ldapparser.py Fri Feb 14 15:42:25 2014 +0100
@@ -201,7 +201,7 @@
{'addr': emailaddr})
if not rset:
# not found, create it. first forge an external id
- emailextid = userdict['dn'] + '@@' + emailaddr
+ emailextid = userdict['dn'] + '@@' + emailaddr.encode('utf-8')
email = self.extid2entity(emailextid, 'EmailAddress',
address=emailaddr)
entity.cw_set(use_email=email)