test/unittest_entity.py
changeset 3777 3ef8cdb5fb1c
parent 3720 5376aaadd16b
parent 3771 234b003f0fe0
child 3890 d7a270f50f54
equal deleted inserted replaced
3739:817e96eeac5c 3777:3ef8cdb5fb1c
   194                           'Any X,AA ORDERBY Z DESC '
   194                           'Any X,AA ORDERBY Z DESC '
   195                           'WHERE X modification_date Z, E eid %(x)s, E tags X, '
   195                           'WHERE X modification_date Z, E eid %(x)s, E tags X, '
   196                           'X modification_date AA')
   196                           'X modification_date AA')
   197         self.assertEquals(tag.related_rql('tags', 'subject', ('Personne',)),
   197         self.assertEquals(tag.related_rql('tags', 'subject', ('Personne',)),
   198                           'Any X,AA,AB ORDERBY AA ASC '
   198                           'Any X,AA,AB ORDERBY AA ASC '
   199                           'WHERE E eid %(x)s, E tags XE is IN (Personne), X nom AA, '
   199                           'WHERE E eid %(x)s, E tags X, X is IN (Personne), X nom AA, '
   200                           'X modification_date AB')
   200                           'X modification_date AB')
   201 
   201 
   202     def test_unrelated_rql_security_1(self):
   202     def test_unrelated_rql_security_1(self):
   203         user = self.request().user
   203         user = self.request().user
   204         rql = user.unrelated_rql('use_email', 'EmailAddress', 'subject')[0]
   204         rql = user.unrelated_rql('use_email', 'EmailAddress', 'subject')[0]