insert missing is_instance_of relations during db-init 3.0
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Tue, 27 Jan 2009 16:02:58 +0100
branch3.0
changeset 480 71376fda9b36
parent 477 79eccee30049
child 481 06e4307507c6
child 2029 9c316aedb90c
insert missing is_instance_of relations during db-init
server/__init__.py
--- a/server/__init__.py	Tue Jan 27 13:52:50 2009 +0100
+++ b/server/__init__.py	Tue Jan 27 16:02:58 2009 +0100
@@ -113,6 +113,8 @@
     for eid, etype in needisfix:
         handler.session.unsafe_execute('SET X is E WHERE X eid %(x)s, E name %(name)s',
                                        {'x': eid, 'name': etype}, 'x')
+        handler.session.unsafe_execute('SET X is_instance_of E WHERE X eid %(x)s, E name %(name)s',
+                                       {'x': eid, 'name': etype}, 'x')
     # insert versions
     handler.cmd_add_entity('EProperty', pkey=u'system.version.cubicweb',
                            value=unicode(config.cubicweb_version()))