server/schemaserial.py
branchstable
changeset 6080 d0cb8fde4957
parent 5970 fb8acdab4e12
child 6189 9fa02f352c8c
--- a/server/schemaserial.py	Mon Aug 09 16:35:49 2010 +0200
+++ b/server/schemaserial.py	Mon Aug 09 18:48:32 2010 +0200
@@ -152,6 +152,8 @@
     for etype, stype in session.execute(
         'Any XN, ETN WHERE X is CWEType, X name XN, X specializes ET, ET name ETN',
         build_descr=False):
+        etype = ETYPE_NAME_MAP.get(etype, etype)
+        stype = ETYPE_NAME_MAP.get(stype, stype)
         schema.eschema(etype)._specialized_type = stype
         schema.eschema(stype)._specialized_by.append(etype)
     for eid, rtype, desc, sym, il, ftc in session.execute(