[ms] fix name error introduced by rql 0.26 api update
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Mar 2010 16:15:16 +0100
changeset 5047 ed048e317eae
parent 5028 261add0b946c
child 5048 bf8a53a11b6d
[ms] fix name error introduced by rql 0.26 api update
server/msplanner.py
--- a/server/msplanner.py	Thu Mar 25 20:32:10 2010 +0100
+++ b/server/msplanner.py	Fri Mar 26 16:15:16 2010 +0100
@@ -315,8 +315,8 @@
                 for const in rel.children[1].get_nodes(Constant):
                     eid = const.eval(self.plan.args)
                     source = self._session.source_from_eid(eid)
-                    if vrels and not any(source.support_relation(r.r_type)
-                                         for r in vrels if not r is rel):
+                    if not any(source.support_relation(r.r_type)
+                               for r in varobj.stinfo['relations'] if not r is rel):
                         self._set_source_for_term(self.system_source, varobj)
                     else:
                         self._set_source_for_term(source, varobj)