misc/migration/3.16.0_Any.py
author David Douard <david.douard@logilab.fr>
Fri, 05 Jul 2013 10:35:14 +0200
branchstable
changeset 9140 e7ffe39d4b1a
parent 8675 b60329e40e26
permissions -rw-r--r--
[test] make unittest_schemaserial.py runnable with python used to run fine only when launched using pytest

sync_schema_props_perms('EmailAddress')

for source in rql('CWSource X WHERE X type "pyrorql"').entities():
    sconfig = source.dictconfig
    nsid = sconfig.pop('pyro-ns-id', config.appid)
    nshost = sconfig.pop('pyro-ns-host', '')
    nsgroup = sconfig.pop('pyro-ns-group', ':cubicweb')
    if nsgroup:
        nsgroup += '.'
    source.cw_set(url=u'pyro://%s/%s%s' % (nshost, nsgroup, nsid))
    source.update_config(skip_unknown=True, **sconfig)

commit()