entity.py
branchstable
changeset 2928 edfdb69df6e8
parent 2877 e469f3602858
child 2931 17224e90a1c4
child 3000 4e76477949d5
equal deleted inserted replaced
2927:d249dd9000d9 2928:edfdb69df6e8
   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',
   254                     cls.warning('bad relation %s specified in fetch attrs for %s',
   255                                  attr, self.__class__)
   255                                  attr, cls)
   256                     selection.pop()
   256                     selection.pop()
   257                     restrictions.pop()
   257                     restrictions.pop()
   258                     continue
   258                     continue
   259                 # 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
   260                 # (card == '?')  *or if the entity is being added*, since in
   260                 # (card == '?')  *or if the entity is being added*, since in