equal
deleted
inserted
replaced
708 |
708 |
709 in auto mode, automatically register entity's relation where the |
709 in auto mode, automatically register entity's relation where the |
710 targeted type is known |
710 targeted type is known |
711 """ |
711 """ |
712 instschema = self.repo.schema |
712 instschema = self.repo.schema |
713 assert not etype in instschema |
713 assert not etype in instschema, \ |
714 # # XXX (syt) plz explain: if we're adding an entity type, it should |
714 '%s already defined in the instance schema' % etype |
715 # # not be there... |
|
716 # eschema = instschema[etype] |
|
717 # if eschema.final: |
|
718 # instschema.del_entity_type(etype) |
|
719 # else: |
|
720 eschema = self.fs_schema.eschema(etype) |
715 eschema = self.fs_schema.eschema(etype) |
721 confirm = self.verbosity >= 2 |
716 confirm = self.verbosity >= 2 |
722 groupmap = self.group_mapping() |
717 groupmap = self.group_mapping() |
723 cstrtypemap = self.cstrtype_mapping() |
718 cstrtypemap = self.cstrtype_mapping() |
724 # register the entity into CWEType |
719 # register the entity into CWEType |