159 'WHERE X is Personne, X nom AA, X prenom AB, X travaille AC?, AC nom AD, ' |
159 'WHERE X is Personne, X nom AA, X prenom AB, X travaille AC?, AC nom AD, ' |
160 'AC evaluee AE?, AE modification_date AF' |
160 'AC evaluee AE?, AE modification_date AF' |
161 ) |
161 ) |
162 # testing symetric relation |
162 # testing symetric relation |
163 Personne.fetch_attrs = ('nom', 'connait') |
163 Personne.fetch_attrs = ('nom', 'connait') |
164 self.assertEquals(Personne.fetch_rql(user), 'Any X,AA,AB ORDERBY AA ASC WHERE X is Personne, X nom AA, X connait AB') |
164 self.assertEquals(Personne.fetch_rql(user), 'Any X,AA,AB ORDERBY AA ASC ' |
|
165 'WHERE X is Personne, X nom AA, X connait AB?') |
165 # testing optional relation |
166 # testing optional relation |
166 peschema.subject_relation('travaille').set_rproperty(peschema, seschema, 'cardinality', '?*') |
167 peschema.subject_relation('travaille').set_rproperty(peschema, seschema, 'cardinality', '?*') |
167 Personne.fetch_attrs = ('nom', 'prenom', 'travaille') |
168 Personne.fetch_attrs = ('nom', 'prenom', 'travaille') |
168 Societe.fetch_attrs = ('nom',) |
169 Societe.fetch_attrs = ('nom',) |
169 self.assertEquals(Personne.fetch_rql(user), |
170 self.assertEquals(Personne.fetch_rql(user), |