schema.py
changeset 4003 b9436fe77c9e
parent 3998 94cc7cad3d2d
child 4004 c52619c738a5
equal deleted inserted replaced
3998:94cc7cad3d2d 4003:b9436fe77c9e
   525         if rdefs:
   525         if rdefs:
   526             try:
   526             try:
   527                 self._eid_index[rdef.eid] = rdefs
   527                 self._eid_index[rdef.eid] = rdefs
   528             except AttributeError:
   528             except AttributeError:
   529                 pass # not a serialized schema
   529                 pass # not a serialized schema
       
   530         return rdefs
   530 
   531 
   531     def del_relation_type(self, rtype):
   532     def del_relation_type(self, rtype):
   532         rschema = self.rschema(rtype)
   533         rschema = self.rschema(rtype)
   533         self._eid_index.pop(rschema.eid, None)
   534         self._eid_index.pop(rschema.eid, None)
   534         super(CubicWebSchema, self).del_relation_type(rtype)
   535         super(CubicWebSchema, self).del_relation_type(rtype)