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
61539925276d
Commit
61539925276d
authored
15 years ago
by
Sylvain Thénault
Browse files
Options
Downloads
Patches
Plain Diff
possibletypes should be copied on copy for ColumnAlias as for Variable
parent
dccea8c73933
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
nodes.py
+5
-9
5 additions, 9 deletions
nodes.py
with
5 additions
and
9 deletions
nodes.py
+
5
−
9
View file @
61539925
...
...
@@ -798,6 +798,11 @@
'
references
'
:
set
(),
}
def
init_copy
(
self
,
old
):
# should copy variable's possibletypes on copy
if
not
self
.
stinfo
.
get
(
'
possibletypes
'
):
self
.
stinfo
[
'
possibletypes
'
]
=
old
.
stinfo
.
get
(
'
possibletypes
'
)
def
as_string
(
self
,
encoding
=
None
,
kwargs
=
None
):
"""
return the tree as an encoded rql string
"""
return
self
.
name
...
...
@@ -969,10 +974,6 @@
return
'
,
'
.
join
(
sorted
(
vtype
for
vtype
in
vtypes
))
return
vtype
# Variable compatibility
def
init_copy
(
self
,
old
):
pass
def
set_scope
(
self
,
scopenode
):
pass
def
get_scope
(
self
):
...
...
@@ -1027,11 +1028,6 @@
return
self
.
stinfo
[
'
sqlscope
'
]
sqlscope
=
property
(
get_sqlscope
,
set_sqlscope
)
def
init_copy
(
self
,
old
):
# should copy variable's possibletypes on copy
if
not
self
.
stinfo
.
get
(
'
possibletypes
'
):
self
.
stinfo
[
'
possibletypes
'
]
=
old
.
stinfo
.
get
(
'
possibletypes
'
)
def
valuable_references
(
self
):
"""
return the number of
"
valuable
"
references :
references is in selection or in a non type (is) relations
...
...
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