misc/migration/3.15.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 10 Feb 2012 17:31:56 +0100
changeset 8219 fb61698f93fc
parent 8188 1867e252e487
child 8251 df46bf02b107
permissions -rw-r--r--
[repo test] fix test broken by recent changes on EmailAddress read permissions

sync_schema_props_perms('EmailAddress')

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

commit()