misc/migration/3.15.0_Any.py
author Rémi Cardona <remi.cardona@logilab.fr>
Fri, 23 May 2014 18:35:13 +0200
changeset 9819 95902c0b991b
parent 8483 4ba11607d84a
permissions -rw-r--r--
[web/js] Deprecate baseuri() and replace with BASE_URL (closes #3955372) Added by commit 8bf2337a6f3b and publicly available since 3.11.2 released more than 3 years ago.

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