equal
deleted
inserted
replaced
189 options = self._check_options(schemacfg, self.etype_options) |
189 options = self._check_options(schemacfg, self.etype_options) |
190 if not checkonly: |
190 if not checkonly: |
191 self.support_entities[ertype] = 'write' in options |
191 self.support_entities[ertype] = 'write' in options |
192 else: # CWRType |
192 else: # CWRType |
193 if ertype in ('is', 'is_instance_of', 'cw_source') or ertype in VIRTUAL_RTYPES: |
193 if ertype in ('is', 'is_instance_of', 'cw_source') or ertype in VIRTUAL_RTYPES: |
194 msg = schemacfg._cw._('%s relation should not be in mapped') % rtype |
194 msg = schemacfg._cw._('%s relation should not be in mapped') % ertype |
195 raise ValidationError(schemacfg.eid, {role_name('cw_for_schema', 'subject'): msg}) |
195 raise ValidationError(schemacfg.eid, {role_name('cw_for_schema', 'subject'): msg}) |
196 options = self._check_options(schemacfg, self.rtype_options) |
196 options = self._check_options(schemacfg, self.rtype_options) |
197 if 'dontcross' in options: |
197 if 'dontcross' in options: |
198 if 'maycross' in options: |
198 if 'maycross' in options: |
199 msg = schemacfg._("can't mix dontcross and maycross options") |
199 msg = schemacfg._("can't mix dontcross and maycross options") |