equal
deleted
inserted
replaced
276 """ |
276 """ |
277 etype = self._get_entity_type(word1) |
277 etype = self._get_entity_type(word1) |
278 eschema = self.schema.eschema(etype) |
278 eschema = self.schema.eschema(etype) |
279 rtype = self._get_attribute_name(word2, eschema) |
279 rtype = self._get_attribute_name(word2, eschema) |
280 # expand shortcut if rtype is a non final relation |
280 # expand shortcut if rtype is a non final relation |
281 if not self.schema.rschema(rtype).is_final(): |
281 if not self.schema.rschema(rtype).final: |
282 return self._expand_shortcut(etype, rtype, word3) |
282 return self._expand_shortcut(etype, rtype, word3) |
283 if '%' in word3: |
283 if '%' in word3: |
284 searchop = 'LIKE ' |
284 searchop = 'LIKE ' |
285 else: |
285 else: |
286 searchop = '' |
286 searchop = '' |