web/views/magicsearch.py
branchtls-sprint
changeset 984 536e421b082b
parent 680 99d0b471cc0c
child 1138 22f634977c95
equal deleted inserted replaced
983:cf1caf460081 984:536e421b082b
    13 
    13 
    14 from rql import RQLSyntaxError, BadRQLQuery, parse
    14 from rql import RQLSyntaxError, BadRQLQuery, parse
    15 from rql.nodes import Relation
    15 from rql.nodes import Relation
    16 
    16 
    17 from cubicweb import Unauthorized
    17 from cubicweb import Unauthorized
    18 from cubicweb.common.view import Component
    18 from cubicweb.view import Component
    19 
    19 
    20 LOGGER = getLogger('cubicweb.magicsearch')
    20 LOGGER = getLogger('cubicweb.magicsearch')
    21 
    21 
    22 def _get_approriate_translation(translations_found, eschema):
    22 def _get_approriate_translation(translations_found, eschema):
    23     """return the first (should be the only one) possible translation according
    23     """return the first (should be the only one) possible translation according