.id has been renamed
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 19 Oct 2009 16:51:13 +0200
changeset 3724 e5ab08bb0d60
parent 3723 a961c7cb2644
child 3725 55e57070a969
.id has been renamed
hooks/metadata.py
--- a/hooks/metadata.py	Mon Oct 19 15:52:56 2009 +0200
+++ b/hooks/metadata.py	Mon Oct 19 16:51:13 2009 +0200
@@ -83,7 +83,7 @@
             #session.add_relation(entity.eid, 'is',
             #                     eschema_type_eid(session, entity.__regid__))
             session.system_sql('INSERT INTO is_relation(eid_from,eid_to) VALUES (%s,%s)'
-                           % (entity.eid, eschema_type_eid(session, entity.id)))
+                           % (entity.eid, eschema_type_eid(session, entity.__regid__)))
         except IndexError:
             # during schema serialization, skip
             return