Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
01b23ec9c066
Commit
122d9f68
authored
Mar 30, 2011
by
Sylvain Thénault
Browse files
[rql rewriter] don't add unnecessary (potentially buggy) exists
--HG-- branch : stable
parent
5406c963ee81
Changes
1
Hide whitespace changes
Inline
Side-by-side
rqlrewrite.py
View file @
01b23ec9
...
...
@@ -252,7 +252,8 @@ class RQLRewriter(object):
self
.
insert_pending
()
self
.
_insert_scope
=
None
return
new
=
n
.
Exists
(
new
)
if
not
isinstance
(
new
,
(
n
.
Exists
,
n
.
Not
)):
new
=
n
.
Exists
(
new
)
if
parent
is
None
:
insert_scope
.
add_restriction
(
new
)
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment