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 |