misc/migration/3.15.0_Any.py
author Aurelien Campeas
Thu, 11 Jul 2013 13:32:27 +0200
changeset 9293 723e2c586ea3
parent 8483 4ba11607d84a
permissions -rw-r--r--
[entity] Entity.related(): add a targettypes argument (closes #2957313) This allows to restrict the entity types returned by the method (passed to cw_related_rql). When such an argument is given, no caching happens.

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