equal
deleted
inserted
replaced
786 DeprecationWarning) |
786 DeprecationWarning) |
787 for rtype, role in self.cw_skip_copy_for: |
787 for rtype, role in self.cw_skip_copy_for: |
788 assert role in ('subject', 'object'), role |
788 assert role in ('subject', 'object'), role |
789 skip_copy_for[role].add(rtype) |
789 skip_copy_for[role].add(rtype) |
790 for rschema in self.e_schema.subject_relations(): |
790 for rschema in self.e_schema.subject_relations(): |
|
791 if rschema.type in skip_copy_for['subject']: |
|
792 continue |
791 if rschema.final or rschema.meta: |
793 if rschema.final or rschema.meta: |
792 continue |
794 continue |
793 # skip already defined relations |
795 # skip already defined relations |
794 if getattr(self, rschema.type): |
796 if getattr(self, rschema.type): |
795 continue |
|
796 if rschema.type in skip_copy_for['subject']: |
|
797 continue |
797 continue |
798 # skip composite relation |
798 # skip composite relation |
799 rdef = self.e_schema.rdef(rschema) |
799 rdef = self.e_schema.rdef(rschema) |
800 if rdef.composite: |
800 if rdef.composite: |
801 continue |
801 continue |