misc/migration/3.15.0_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Wed, 09 Oct 2013 12:10:44 +0200
branchstable
changeset 9266 e54171abd3ed
parent 8483 4ba11607d84a
permissions -rw-r--r--
Added tag cubicweb-version-3.17.9, cubicweb-debian-version-3.17.9-1 for changeset 5668d210e49c

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