equal
deleted
inserted
replaced
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 |