mflbackend/src/backend.py
def lexiconinfo(lex=''):
    " Give information about existing lexicons and their configs "
    if lex:
        lexconf = lexconfig.get_lexiconconf(lex)
        return jsonify(lexconf)
    else:
        res = []
        for lexdict in C.config['all_lexicons']:
            lexconf = {'name': lexdict['name'], 'open': lexdict.get('open', False)}
            res.append(lexconf)
        return jsonify({"lexicons": res})
 Give information about existing lexicons and their configs 
Give information about existing lexicons and their configs
Give information about existing lexicons and their configs
def lexiconinfo(lex=''):
    if lex:
        lexconf = lexconfig.get_lexiconconf(lex)
        return jsonify(lexconf)
    else:
        res = []
        for lexdict in C.config['all_lexicons']:
            lexconf = {'name': lexdict['name'], 'open': lexdict.get('open', False)}
            res.append(lexconf)
        return jsonify({"lexicons": res})
def lexiconinfo ( lex = '' ) : if lex : lexconf = lexconfig . get_lexiconconf ( lex ) return jsonify ( lexconf ) else : res = [ ] for lexdict in C . config [ 'all_lexicons' ] : lexconf = { 'name' : lexdict [ 'name' ] , 'open' : lexdict . get ( 'open' , False ) } res . append ( lexconf ) return jsonify ( { "lexicons" : res } )
Give information about existing lexicons and their configs
Give information about existing lexicons and their configs
" Give information about existing lexicons and their configs "
lex