misc/migration/3.15.0_Any.py
author David Douard <david.douard@logilab.fr>
Mon, 11 Feb 2013 11:47:50 +0100
changeset 8829 bb14dc9848ec
parent 8483 4ba11607d84a
permissions -rw-r--r--
[c-c list] add an optional argument to the list command (closes #2709703) This optional argument allows to restrict listing to only a given type of items (cubes, instances, configurations).

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