cubicweb/misc/migration/3.15.0_Any.py
changeset 11057 0b59724cb3f2
parent 8483 4ba11607d84a
child 12133 8743c3bda480
equal deleted inserted replaced
11052:058bb3dc685f 11057:0b59724cb3f2
       
     1 sync_schema_props_perms('EmailAddress')
       
     2 
       
     3 for source in rql('CWSource X WHERE X type "ldapuser"').entities():
       
     4     config = source.dictconfig
       
     5     host = config.pop('host', u'ldap')
       
     6     protocol = config.pop('protocol', u'ldap')
       
     7     source.cw_set(url=u'%s://%s' % (protocol, host))
       
     8     source.update_config(skip_unknown=True, **config)
       
     9 
       
    10 commit()