[ms planner] ignore neged source relation when trying to restrict query sources stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 29 Apr 2011 20:16:54 +0200
branchstable
changeset 7292 258c92805066
parent 7291 1e28fac16834
child 7295 b6fd14ee491e
[ms planner] ignore neged source relation when trying to restrict query sources
server/msplanner.py
--- a/server/msplanner.py	Fri Apr 29 12:34:18 2011 +0200
+++ b/server/msplanner.py	Fri Apr 29 20:16:54 2011 +0200
@@ -483,7 +483,7 @@
             else:
                 var = vref.variable
                 for rel in var.stinfo['relations'] - var.stinfo['rhsrelations']:
-                    if rel.r_type in ('eid', 'name'):
+                    if rel.r_type in ('eid', 'name') and not rel.neged(strict=True):
                         if rel.r_type == 'eid':
                             slist = sourceeids
                         else: