misc/migration/3.10.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 01 Oct 2010 15:45:38 +0200
changeset 6378 5a86a0c147bd
parent 6141 b8287e54b528
child 6427 c8a5ac2d1eaa
permissions -rw-r--r--
[3.10 migration] fix migration of cwproperties related to components/boxes

# rename cwprops for boxes/contentnavigation
for x in rql('Any X,XK WHERE X pkey XK, '
             'X pkey ~= "boxes.%s" OR '
             'X pkey ~= "contentnavigation.%s"').entities():
    x.set_attributes(pkey=u'ctxcomponents.' + x.pkey.split('.', 1)[1])