[migration] reset do-not-insert-cwuri once it's properly in the schema
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 30 Jul 2009 19:00:57 +0200
changeset 2578 b717ebef04d8
parent 2577 7c9888114085
child 2579 e69b2342bd8b
child 2581 2833df289165
[migration] reset do-not-insert-cwuri once it's properly in the schema
misc/migration/bootstrapmigration_repository.py
--- a/misc/migration/bootstrapmigration_repository.py	Thu Jul 30 18:52:33 2009 +0200
+++ b/misc/migration/bootstrapmigration_repository.py	Thu Jul 30 19:00:57 2009 +0200
@@ -29,6 +29,7 @@
     isession.commit()
     repo.hm.register_hook(uniquecstrcheck_before_modification, 'before_add_entity', '')
     repo.hm.register_hook(uniquecstrcheck_before_modification, 'before_update_entity', '')
+    session.set_shared_data('do-not-insert-cwuri', False)
 
 if applcubicwebversion < (3, 2, 2) and cubicwebversion >= (3, 2, 1):
     from base64 import b64encode