[Cubicweb] RRQLExpression and ERQLExpression

Sylvain Thénault sylvain.thenault at logilab.fr
Tue Apr 15 15:23:30 CEST 2014


On 15 avril 14:26, Jinpeng Li wrote:
> Hi all,

Hi,
 
your case #1 should be the right way to do this.

> 1: Study.name doesn't inherit permissions from Study

there is the problem. Which cubicweb/yams version are you using?
What's the result of `schema['Study'].rdef('name').permissions`?

> 2: Study.get_relation("name").__permissions__ cannot use neither
> RRQLExpression nor ERQLExpression.

to precise things a bit:

* attribute permissions should use ERQLExpression, RRQLExpression is for (non
  final) relations only

* you can't use rql expression in 'read' permissions for both attributes and
  relations

-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



More information about the Cubicweb mailing list