[entity related rql] 'is' relation target constant should have 'etype' type, not String
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 17 Oct 2011 19:27:54 +0200
changeset 7964 4ea2abc83dce
parent 7963 059914a691a9
child 7965 d45c0eb39e72
[entity related rql] 'is' relation target constant should have 'etype' type, not String
entity.py
--- a/entity.py	Mon Oct 17 15:08:25 2011 +0200
+++ b/entity.py	Mon Oct 17 19:27:54 2011 +0200
@@ -894,7 +894,7 @@
                 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: