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
4ea2abc83dce
Commit
d4cd0c2f
authored
Oct 17, 2011
by
Sylvain Thénault
Browse files
[entity related rql] 'is' relation target constant should have 'etype' type, not String
parent
059914a691a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
entity.py
View file @
4ea2abc8
...
...
@@ -894,7 +894,7 @@ class Entity(AppObject):
targettypes
=
rschema
.
subjects
(
self
.
e_schema
)
else
:
select
.
add_constant_restriction
(
mainvar
,
'is'
,
targettypes
,
'
String
'
)
'
etype
'
)
gcard
=
greater_card
(
rschema
,
targettypes
,
(
self
.
e_schema
,),
1
)
etypecls
=
vreg
[
'etypes'
].
etype_class
(
targettypes
[
0
])
if
len
(
targettypes
)
>
1
:
...
...
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