equal
deleted
inserted
replaced
833 continue |
833 continue |
834 # case where attribute must be completed, but is not yet in entity |
834 # case where attribute must be completed, but is not yet in entity |
835 var = varmaker.next() |
835 var = varmaker.next() |
836 rql.append('%s %s %s' % (V, attr, var)) |
836 rql.append('%s %s %s' % (V, attr, var)) |
837 selected.append((attr, var)) |
837 selected.append((attr, var)) |
838 # +1 since this doen't include the main variable |
838 # +1 since this doesn't include the main variable |
839 lastattr = len(selected) + 1 |
839 lastattr = len(selected) + 1 |
840 # don't fetch extra relation if attributes specified or of the entity is |
840 # don't fetch extra relation if attributes specified or of the entity is |
841 # coming from an external source (may lead to error) |
841 # coming from an external source (may lead to error) |
842 if attributes is None and self.cw_metainformation()['source']['uri'] == 'system': |
842 if attributes is None and self.cw_metainformation()['source']['uri'] == 'system': |
843 # fetch additional relations (restricted to 0..1 relations) |
843 # fetch additional relations (restricted to 0..1 relations) |