Skip to content
Snippets Groups Projects
Commit 03953db80b92 authored by Sylvain Thenault's avatar Sylvain Thenault
Browse files

consider NOT node as a new scope

parent e7352ff4b488
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
=================
--
* consider NOT node as a new scope
* rql checker raise BadRQLQuery for inconsistent orderby on distinct query
* correctly restore .parent when undoing RemoveNodeOperation
......
......@@ -246,6 +246,10 @@
def __repr__(self, encoding=None, kwargs=None):
return 'NOT (%s)' % repr(self.children[0])
@property
def scope(self):
return self
def ored(self, _fromnode=None):
return self.parent.ored(_fromnode or self)
def neged(self, _fromnode=None):
......
......@@ -426,7 +426,7 @@
node.children[0].accept(self, node)
def visit_not(self, node, scope):
node.children[0].accept(self, scope)
node.children[0].accept(self, node)
def visit_and(self, node, scope):
node.children[0].accept(self, scope)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment