misc/migration/3.10.9_Any.py
branchstable
changeset 7032 b712477ae286
parent 7026 2c65dd2cbfff
child 7034 1ac9715876e3
--- a/misc/migration/3.10.9_Any.py	Mon Feb 28 14:12:42 2011 +0100
+++ b/misc/migration/3.10.9_Any.py	Mon Feb 28 14:14:19 2011 +0100
@@ -1,4 +1,5 @@
 from __future__ import with_statement
+
 if confirm('fix existing cwuri?'):
     from logilab.common.shellutils import ProgressBar
     from cubicweb.server.session import hooks_control
@@ -11,3 +12,11 @@
                 commit(ask_confirm=False)
             pb.update()
     commit(ask_confirm=False)
+
+try:
+    from cubicweb import devtools
+    option_group_changed('anonymous-user', 'main', 'web')
+    option_group_changed('anonymous-password', 'main', 'web')
+except ImportError:
+    # cubicweb-dev unavailable, nothing needed
+    pass