misc/migration/3.15.0_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Thu, 12 Feb 2015 13:52:58 +0100 (2015-02-12)
changeset 10231 fdcc500002ef
parent 8483 4ba11607d84a
permissions -rw-r--r--
[devtools] don't hide warnings and errors during tests The markdown module in jessie turns all warnings into logging calls, so this allows me to still see deprecation warnings when running tests.
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()