Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
elasticsearch
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
cubes
elasticsearch
Commits
6527f18a1a69
Commit
6527f18a1a69
authored
8 years ago
by
Arthur Lutz
Browse files
Options
Downloads
Patches
Plain Diff
[es] only use var in selected
parent
08eae6d4a792
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
es.py
+3
-3
3 additions, 3 deletions
es.py
with
3 additions
and
3 deletions
es.py
+
3
−
3
View file @
6527f18a
...
...
@@ -88,10 +88,10 @@
attr
=
rschema
.
type
var
=
next
(
varmaker
)
rql
.
append
(
'
%s %s %s
'
%
(
V
,
attr
,
var
))
selected
.
append
(
(
attr
,
var
)
)
selected
.
append
(
var
)
for
rschema
,
tschema
in
schema
.
eschema
(
etype
).
attribute_definitions
():
if
tschema
.
type
in
(
'
Int
'
,
'
Float
'
):
attr
=
rschema
.
type
if
eid
and
attr
!=
'
eid
'
:
var
=
next
(
varmaker
)
rql
.
append
(
'
%s %s %s
'
%
(
V
,
attr
,
var
))
...
...
@@ -92,10 +92,10 @@
for
rschema
,
tschema
in
schema
.
eschema
(
etype
).
attribute_definitions
():
if
tschema
.
type
in
(
'
Int
'
,
'
Float
'
):
attr
=
rschema
.
type
if
eid
and
attr
!=
'
eid
'
:
var
=
next
(
varmaker
)
rql
.
append
(
'
%s %s %s
'
%
(
V
,
attr
,
var
))
selected
.
append
(
(
attr
,
var
)
)
selected
.
append
(
var
)
for
attr
in
(
'
creation_date
'
,
'
modification_date
'
,)
+
CUSTOM_ATTRIBUTES
.
get
(
etype
,
()):
var
=
next
(
varmaker
)
rql
.
append
(
'
%s %s %s
'
%
(
V
,
attr
,
var
))
...
...
@@ -99,7 +99,7 @@
for
attr
in
(
'
creation_date
'
,
'
modification_date
'
,)
+
CUSTOM_ATTRIBUTES
.
get
(
etype
,
()):
var
=
next
(
varmaker
)
rql
.
append
(
'
%s %s %s
'
%
(
V
,
attr
,
var
))
selected
.
append
(
(
attr
,
var
)
)
selected
.
append
(
var
)
for
attr
in
(
'
creation_date
'
,
'
modification_date
'
):
var
=
next
(
varmaker
)
rql
.
append
(
'
%s %s %s
'
%
(
V
,
attr
,
var
))
...
...
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