__pkginfo__.py
author |
Philippe Pepiot <philippe.pepiot@logilab.fr> |
|
Fri, 28 Apr 2017 09:49:37 +0200 |
changeset 12183 |
af5d0a3c3f1a |
parent 11382 |
dab704a0e4b1
|
permissions |
lrwxrwxrwx |
[req] fix find() generating non-rewritable rql on non final relations
When filtering on a relation, find() was generating rql like
'Any X WHERE X is ETYPE, X relation EID' which work without being rewritten (it
should probably not), but when applying some rewrite (eg. permissions) it raise
in rqlrewrite code.
def _use_orig_term(self, snippet_varname, term):
...
> self.rewritten[key] = term.name
E AttributeError: 'Constant' object has no attribute 'name'
Generate valid rql instead 'Any X WHERE X is ETYPE, X relation Y, Y eid EID'.
11382
|
1 |
cubicweb/__pkginfo__.py |