misc/migration/3.15.0_Any.py
author Vladimir Popescu <vladimir.popescu@logilab.fr>
Fri, 18 Jan 2013 16:40:11 +0100
changeset 8658 11707295d4e6
parent 8483 4ba11607d84a
permissions -rw-r--r--
[doc/book/] Corrected typo in en/tutorials/base/customizing-the-application.rst, for the add_cubes function call

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