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