--- 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()