[migration] Nicer confirmation messages
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 22 Mar 2017 18:15:26 +0100
changeset 218 4b15f0c60c19
parent 217 5a0cebef1a8e
child 219 d851c4686604
[migration] Nicer confirmation messages rdef.subject & all are schema objects whose repr() display unexpected internal information.
cubicweb_sherpa/migration/0.8.0_Any.py
--- a/cubicweb_sherpa/migration/0.8.0_Any.py	Thu Mar 09 17:33:13 2017 +0100
+++ b/cubicweb_sherpa/migration/0.8.0_Any.py	Wed Mar 22 18:15:26 2017 +0100
@@ -8,6 +8,7 @@
     sync_schema_props_perms(child, syncprops=False)
 
 for rdef, parent_role in utils.mandatory_rdefs(schema, structure):
-    sync_schema_props_perms((rdef.subject, rdef.rtype, rdef.object), syncprops=False)
+    sync_schema_props_perms((str(rdef.subject), str(rdef.rtype), str(rdef.object)),
+                            syncprops=False)
 
 sync_schema_props_perms('SEDAArchiveUnit', syncprops=False)