misc/migration/3.15.0_Any.py
author Florent Cayré <florent.cayre@logilab.fr>
Mon, 03 Feb 2014 16:30:07 +0100
changeset 9520 78702b55c089
parent 8483 4ba11607d84a
permissions -rw-r--r--
Drop 3.13 incomplete backward compat in edit controller. It is very old and broken (there is another non-backward-copmpatible usage of `_cw_entity_fields`), better to remove it instead of fixing. Closes #3515223.

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