misc/migration/3.15.0_Any.py
author Vincent Michel <vincent.michel@logilab.fr>
Mon, 07 Apr 2014 08:44:56 +0000
branchstable
changeset 9696 4de6e73f580d
parent 8483 4ba11607d84a
permissions -rw-r--r--
[dataimport] Correctly serialize datetime objects in _create_copyfrom_buffer, closes #3712885

sync_schema_props_perms('EmailAddress')

for source in rql('CWSource X WHERE X type "ldapuser"').entities():
    config = source.dictconfig
    host = config.pop('host', u'ldap')
    protocol = config.pop('protocol', u'ldap')
    source.cw_set(url=u'%s://%s' % (protocol, host))
    source.update_config(skip_unknown=True, **config)

commit()