[migration] use eschema.type for nicer display when confirmation is asked stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 05 Nov 2010 10:49:58 +0100
branchstable
changeset 6679 7f2735c48653
parent 6678 5726677f0ae7
child 6680 b62ebf1d9388
[migration] use eschema.type for nicer display when confirmation is asked
misc/migration/3.10.4_Any.py
--- a/misc/migration/3.10.4_Any.py	Fri Nov 05 10:49:33 2010 +0100
+++ b/misc/migration/3.10.4_Any.py	Fri Nov 05 10:49:58 2010 +0100
@@ -1,6 +1,6 @@
 for eschema in schema.entities():
     if not (eschema.final or 'cw_source' in eschema.subjrels):
-        add_relation_definition(eschema, 'cw_source', 'CWSource')
+        add_relation_definition(eschema.type, 'cw_source', 'CWSource')
 
 sql('INSERT INTO cw_source_relation(eid_from, eid_to) '
     'SELECT e.eid,s.cw_eid FROM entities as e, cw_CWSource as s '