entities/schemaobjs.py
branchstable
changeset 6912 b61b844f2dad
parent 6632 78878f5a8166
child 6944 0cf10429ad39
equal deleted inserted replaced
6911:75849076fd6c 6912:b61b844f2dad
   137             if not card in '?1':
   137             if not card in '?1':
   138                 qname = role_name('inlined', 'subject')
   138                 qname = role_name('inlined', 'subject')
   139                 rtype = self.name
   139                 rtype = self.name
   140                 stype = rdef.stype
   140                 stype = rdef.stype
   141                 otype = rdef.otype
   141                 otype = rdef.otype
   142                 msg = self._cw._("can't set inlined=%(inlined)s, "
   142                 msg = self._cw._("can't set inlined=True, "
   143                                  "%(stype)s %(rtype)s %(otype)s "
   143                                  "%(stype)s %(rtype)s %(otype)s "
   144                                  "has cardinality=%(card)s")
   144                                  "has cardinality=%(card)s")
   145                 raise ValidationError(self.eid, {qname: msg % locals()})
   145                 raise ValidationError(self.eid, {qname: msg % locals()})
   146 
   146 
   147     def db_key_name(self):
   147     def db_key_name(self):