server/sources/pyrorql.py
branchstable
changeset 7879 9aae456abab5
parent 7815 2a164a9cf81c
child 7884 35d2e2f4e10a
equal deleted inserted replaced
7874:be04706eacc9 7879:9aae456abab5
   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")