misc/migration/3.15.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 22 Jul 2013 11:09:28 +0200
branchstable
changeset 9170 e6fe77dbcfdf
parent 8483 4ba11607d84a
permissions -rw-r--r--
[rql rewrite] may_be_shared_with should consider relation's scope (closes #3024730) When a relation's scope is not the current statement, it must not be shared (instead of comparing the statement).

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