misc/migration/3.15.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 12 Nov 2013 15:24:57 +0100
branchstable
changeset 9326 9d145b4c4e53
parent 8483 4ba11607d84a
permissions -rw-r--r--
[web] make sign_text unicode aware, avoid crash with non-ascii chars. Closes #3289774

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