# HG changeset patch # User Sylvain Thénault # Date 1329750816 -3600 # Node ID df46bf02b107a5f5469868dd094de4701dcae225 # Parent 171a9d6bff8f5b22267b973ec17e00b204b47061 [ldap migration] use unicode strings diff -r 171a9d6bff8f -r df46bf02b107 misc/migration/3.15.0_Any.py --- a/misc/migration/3.15.0_Any.py Tue Feb 14 11:33:59 2012 +0100 +++ b/misc/migration/3.15.0_Any.py Mon Feb 20 16:13:36 2012 +0100 @@ -2,9 +2,9 @@ for source in rql('CWSource X WHERE X type "ldapuser"').entities(): config = source.dictconfig - host = config.pop('host', 'ldap') - protocol = config.pop('protocol', 'ldap') - source.set_attributes(url='%s://%s' % (protocol, host)) + host = config.pop('host', u'ldap') + protocol = config.pop('protocol', u'ldap') + source.set_attributes(url=u'%s://%s' % (protocol, host)) source.update_config(skip_unknown=True, **config) commit()