misc/migration/3.15.0_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 17 Jun 2014 17:53:31 +0200
changeset 10013 b68088082280
parent 8483 4ba11607d84a
permissions -rw-r--r--
[web/json] an empty rset is just fine for ejsonexport The ejsonexport view can just return an empty list for an empty rset. Closes #4005518

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