server/msplanner.py
branch3.5
changeset 3239 1ceac4cd4fb7
parent 3040 e4dc22040f5f
child 3624 05932c6f7db2
equal deleted inserted replaced
3238:988a72e59b2b 3239:1ceac4cd4fb7
   342                         # actually have to fetch from it only if
   342                         # actually have to fetch from it only if
   343                         # * the variable isn't invariant
   343                         # * the variable isn't invariant
   344                         # * at least one supported relation specified
   344                         # * at least one supported relation specified
   345                         if not varobj._q_invariant or \
   345                         if not varobj._q_invariant or \
   346                                any(imap(source.support_relation,
   346                                any(imap(source.support_relation,
   347                                         (r.r_type for r in rels if r.r_type != 'eid'))):
   347                                         (r.r_type for r in rels if r.r_type not in ('identity', 'eid')))):
   348                             sourcesterms.setdefault(source, {}).setdefault(varobj, set()).add(i)
   348                             sourcesterms.setdefault(source, {}).setdefault(varobj, set()).add(i)
   349                         # if variable is not invariant and is used by a relation
   349                         # if variable is not invariant and is used by a relation
   350                         # not supported by this source, we'll have to split the
   350                         # not supported by this source, we'll have to split the
   351                         # query
   351                         # query
   352                         if not varobj._q_invariant and any(ifilterfalse(
   352                         if not varobj._q_invariant and any(ifilterfalse(