misc/migration/3.10.0_Any.py
author Alexandre Fayolle <alexandre.fayolle@logilab.fr>
Thu, 02 Sep 2010 14:09:20 +0200
changeset 6180 9d7acf23369d
parent 6141 b8287e54b528
child 6378 5a86a0c147bd
permissions -rw-r--r--
fix name error by adding missing import
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6141
b8287e54b528 [web api] unify 'contentnav' (VComponent) and 'boxes' registries as 'ctxcomponents' (CtxComponent)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
# rename cwprops for boxes/contentnavigation
b8287e54b528 [web api] unify 'contentnav' (VComponent) and 'boxes' registries as 'ctxcomponents' (CtxComponent)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     2
for x in rql('Any X,XK WHERE X pkey XK, '
b8287e54b528 [web api] unify 'contentnav' (VComponent) and 'boxes' registries as 'ctxcomponents' (CtxComponent)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     3
             'X pkey ~= "boxes.%s" OR '
b8287e54b528 [web api] unify 'contentnav' (VComponent) and 'boxes' registries as 'ctxcomponents' (CtxComponent)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     4
             'X pkey ~= "contentnavigation.%s"').entities():
b8287e54b528 [web api] unify 'contentnav' (VComponent) and 'boxes' registries as 'ctxcomponents' (CtxComponent)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     5
    x.set_attributes(pkey=u'ctxcomponents.' + x.pkey.split('.',1))