misc/migration/bootstrapmigration_repository.py
changeset 9515 b0dd5b57d2d8
parent 9163 fe4c1c1982e7
child 9543 39f981482e34
equal deleted inserted replaced
9514:29987849a435 9515:b0dd5b57d2d8
   155         base_url = session.base_url()
   155         base_url = session.base_url()
   156         for eid, in rql('Any X', ask_confirm=False):
   156         for eid, in rql('Any X', ask_confirm=False):
   157             type, source, extid = session.describe(eid)
   157             type, source, extid = session.describe(eid)
   158             if source == 'system':
   158             if source == 'system':
   159                 rql('SET X cwuri %(u)s WHERE X eid %(x)s',
   159                 rql('SET X cwuri %(u)s WHERE X eid %(x)s',
   160                     {'x': eid, 'u': base_url + u'eid/%s' % eid})
   160                     {'x': eid, 'u': u'%s%s' % (base_url, eid)})
   161         isession.commit()
   161         isession.commit()
   162         session.set_shared_data('do-not-insert-cwuri', False)
   162         session.set_shared_data('do-not-insert-cwuri', False)
   163 
   163 
   164 if applcubicwebversion < (3, 5, 0) and cubicwebversion >= (3, 5, 0):
   164 if applcubicwebversion < (3, 5, 0) and cubicwebversion >= (3, 5, 0):
   165     # check that migration is not doomed
   165     # check that migration is not doomed