misc/migration/3.15.0_Any.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 13 Mar 2015 14:10:40 +0100
changeset 10236 ef3059a692cb
parent 8483 4ba11607d84a
permissions -rw-r--r--
Remove the remote repository-access-through-zmq support Modern methods such as the rqlcontroller cube + the cwclientlib library are the way forward. Closes #2919297.

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