Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RQL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
RQL
Commits
ab3c51fd46bf
Commit
ab3c51fd46bf
authored
16 years ago
by
Sylvain
Browse files
Options
Downloads
Patches
Plain Diff
delegate save_state/recover on select to union
parent
b1669b4430c7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stmts.py
+8
-0
8 additions, 0 deletions
stmts.py
with
8 additions
and
0 deletions
stmts.py
+
8
−
0
View file @
ab3c51fd
...
@@ -490,6 +490,14 @@
...
@@ -490,6 +490,14 @@
yield
node
yield
node
# construction helper methods #############################################
# construction helper methods #############################################
def
save_state
(
self
):
"""
save the current tree
"""
self
.
parent
.
save_state
()
def
recover
(
self
):
"""
reverts the tree as it was when save_state() was last called
"""
self
.
parent
.
recover
()
def
append_selected
(
self
,
term
):
def
append_selected
(
self
,
term
):
if
isinstance
(
term
,
nodes
.
Constant
)
and
term
.
type
==
'
etype
'
:
if
isinstance
(
term
,
nodes
.
Constant
)
and
term
.
type
==
'
etype
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment