test/unittest_entity.py
branchstable
changeset 3769 021d32e3a289
parent 3689 deb13e88e037
child 3771 234b003f0fe0
equal deleted inserted replaced
3768:8c85a2f7f5ad 3769:021d32e3a289
   201                           'Any X,AA ORDERBY Z DESC '
   201                           'Any X,AA ORDERBY Z DESC '
   202                           'WHERE X modification_date Z, E eid %(x)s, E tags X, '
   202                           'WHERE X modification_date Z, E eid %(x)s, E tags X, '
   203                           'X modification_date AA')
   203                           'X modification_date AA')
   204         self.assertEquals(tag.related_rql('tags', 'subject', ('Personne',)),
   204         self.assertEquals(tag.related_rql('tags', 'subject', ('Personne',)),
   205                           'Any X,AA,AB ORDERBY AA ASC '
   205                           'Any X,AA,AB ORDERBY AA ASC '
   206                           'WHERE E eid %(x)s, E tags XE is IN (Personne), X nom AA, '
   206                           'WHERE E eid %(x)s, E tags X, E is IN (Personne), X nom AA, '
   207                           'X modification_date AB')
   207                           'X modification_date AB')
   208 
   208 
   209     def test_unrelated_rql_security_1(self):
   209     def test_unrelated_rql_security_1(self):
   210         user = self.request().user
   210         user = self.request().user
   211         rql = user.unrelated_rql('use_email', 'EmailAddress', 'subject')[0]
   211         rql = user.unrelated_rql('use_email', 'EmailAddress', 'subject')[0]