entity.py
changeset 7995 9a9f35ef418c
parent 7990 a673d1d9a738
child 8190 2a3c1b787688
child 8199 fb5c0e60a615
equal deleted inserted replaced
7994:af3fb709c061 7995:9a9f35ef418c
   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)