misc/migration/3.15.0_Any.py
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 18 Jun 2013 15:12:25 +0200
changeset 9036 cf519fd876c6
parent 8483 4ba11607d84a
permissions -rw-r--r--
[etwist] pass the repository to the root resource This is another step toward a cleaner instantiation scheme for the repo. The http test now pass an already created object to the etwist server instead of relying on the config cache. Related to #2249513

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