mflbackend/src/helpers.py
def give_info(identifier, id_field, mode, resource, show=[]):
    " Give information for the word/paradigm infobox "
    q = 'extended||and|%s.search|equals|%s' %\
        (id_field, identifier)
    body = {'q': q}
    action = 'query'
    if show:
        body['show'] = ','.join(show)
        action = 'minientry'
    res = karp_query(action, body, mode=mode, resource=resource)
    if es_total(res) > 0:
        return es_first_source(res)
    return {}
 Give information for the word/paradigm infobox 
Give information for the word/paradigm infobox
Give information for the word / paradigm infobox
def give_info(identifier, id_field, mode, resource, show=[]):
    q = 'extended||and|%s.search|equals|%s' %\
        (id_field, identifier)
    body = {'q': q}
    action = 'query'
    if show:
        body['show'] = ','.join(show)
        action = 'minientry'
    res = karp_query(action, body, mode=mode, resource=resource)
    if es_total(res) > 0:
        return es_first_source(res)
    return {}
def give_info ( identifier , id_field , mode , resource , show = [ ] ) : q = 'extended||and|%s.search|equals|%s' % ( id_field , identifier ) body = { 'q' : q } action = 'query' if show : body [ 'show' ] = ',' . join ( show ) action = 'minientry' res = karp_query ( action , body , mode = mode , resource = resource ) if es_total ( res ) > 0 : return es_first_source ( res ) return { }
Give information for the word/paradigm infobox
Give information for the word / paradigm infobox
" Give information for the word/paradigm infobox "
identifier
id_field
mode
resource
show