--- a/cubicweb/server/schemaserial.py Fri Sep 30 17:38:12 2016 +0200
+++ b/cubicweb/server/schemaserial.py Wed Oct 05 15:30:10 2016 +0200
@@ -45,7 +45,7 @@
"""
res = {}
for eid, name in cnx.execute('Any G, N WHERE G is CWGroup, G name N',
- build_descr=False):
+ build_descr=False):
res[name] = eid
if not interactive:
return res
@@ -147,8 +147,8 @@
{'x': etype, 'n': netype})
cnx.commit(False)
tocleanup = [eid]
- tocleanup += (eid for eid, cached in repo._type_extid_cache.items()
- if etype == cached[0])
+ tocleanup += (eid for eid, cached in repo._type_cache.items()
+ if etype == cached)
repo.clear_caches(tocleanup)
cnx.commit(False)
if needcopy: