entity.py
branchstable
changeset 2872 9d641d98cc86
parent 2871 83c5499e1436
child 2875 b7399ef8b3e0
equal deleted inserted replaced
2871:83c5499e1436 2872:9d641d98cc86
   249             if not rschema.is_final():
   249             if not rschema.is_final():
   250                 # XXX this does not handle several destination types
   250                 # XXX this does not handle several destination types
   251                 desttype = rschema.objects(eschema.type)[0]
   251                 desttype = rschema.objects(eschema.type)[0]
   252                 card = rschema.rproperty(eschema, desttype, 'cardinality')[0]
   252                 card = rschema.rproperty(eschema, desttype, 'cardinality')[0]
   253                 if card not in '?1':
   253                 if card not in '?1':
       
   254                     self.warning('bad relation %s specified in fetch attrs for %s',
       
   255                                  attr, self.__class__)
   254                     selection.pop()
   256                     selection.pop()
   255                     restrictions.pop()
   257                     restrictions.pop()
   256                     continue
   258                     continue
   257                 # XXX we need outer join in case the relation is not mandatory
   259                 # XXX we need outer join in case the relation is not mandatory
   258                 # (card == '?')  *or if the entity is being added*, since in
   260                 # (card == '?')  *or if the entity is being added*, since in