author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Mon, 13 Feb 2012 12:16:21 +0100 | |
changeset 8222 | 2a92f0ec881d |
parent 8188 | 1867e252e487 |
child 8251 | df46bf02b107 |
permissions | -rw-r--r-- |
sync_schema_props_perms('EmailAddress') for source in rql('CWSource X WHERE X type "ldapuser"').entities(): config = source.dictconfig host = config.pop('host', 'ldap') protocol = config.pop('protocol', 'ldap') source.set_attributes(url='%s://%s' % (protocol, host)) source.update_config(skip_unknown=True, **config) commit()