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] |