misc/migration/3.10.0_Any.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 06 Oct 2010 11:57:21 +0200
changeset 6400 21468682f688
parent 6378 5a86a0c147bd
child 6427 c8a5ac2d1eaa
permissions -rw-r--r--
restore vital block of code (gone in 6384:89d5b339ebdd)

# 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])