server/schemaserial.py
changeset 7543 570522300e22
parent 7398 26695dd703d8
child 7815 2a164a9cf81c
equal deleted inserted replaced
7542:86e9632a4e9c 7543:570522300e22
   136                 sqlexec('UPDATE deleted_entities SET type=%(n)s WHERE type=%(x)s',
   136                 sqlexec('UPDATE deleted_entities SET type=%(n)s WHERE type=%(x)s',
   137                         {'x': etype, 'n': netype})
   137                         {'x': etype, 'n': netype})
   138             except:
   138             except:
   139                 pass
   139                 pass
   140             tocleanup = [eid]
   140             tocleanup = [eid]
   141             tocleanup += (eid for eid, (eidetype, uri, extid) in repo._type_source_cache.items()
   141             tocleanup += (eid for eid, cached in repo._type_source_cache.iteritems()
   142                           if etype == eidetype)
   142                           if etype == cached[0])
   143             repo.clear_caches(tocleanup)
   143             repo.clear_caches(tocleanup)
   144             session.commit(False)
   144             session.commit(False)
   145             if needcopy:
   145             if needcopy:
   146                 ertidx[eid] = netype
   146                 ertidx[eid] = netype
   147                 copiedeids.add(eid)
   147                 copiedeids.add(eid)