web/views/magicsearch.py
branchstable
changeset 3689 deb13e88e037
parent 3362 2a2dcfb379a0
child 3720 5376aaadd16b
child 4212 ab6573088b4a
equal deleted inserted replaced
3688:421fb447ecb2 3689:deb13e88e037
   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 = ''