mflbackend/src/backend.py
def wordinfo(word=''):
    " Show information for the word infobox "
    lexicon = request.args.get('lexicon', C.config['default'])
    identifier = word or request.args.get('identifier')
    lexconf = lexconfig.get_lexiconconf(lexicon)
    obj = helpers.give_info(identifier, lexconf['identifier'],
                            lexconf['lexiconMode'], lexconf["lexiconName"])
    lexobj = helpers.format_entry(lexicon, obj)
    # Get info about paradigm_entries and variable instances
    paraobj = helpers.give_info(lexobj['paradigm'], pp.id_field,
                                lexconf['paradigmMode'],
                                lexconf["paradigmlexiconName"])
    # Merge the paradigmentry and the wordentry
    pp.word_add_parainfo(lexobj, paraobj)
    return jsonify(lexobj)
 Show information for the word infobox 
Show information for the word infobox
Show information for the word infobox
def wordinfo(word=''):
    lexicon = request.args.get('lexicon', C.config['default'])
    identifier = word or request.args.get('identifier')
    lexconf = lexconfig.get_lexiconconf(lexicon)
    obj = helpers.give_info(identifier, lexconf['identifier'],
                            lexconf['lexiconMode'], lexconf["lexiconName"])
    lexobj = helpers.format_entry(lexicon, obj)
    paraobj = helpers.give_info(lexobj['paradigm'], pp.id_field,
                                lexconf['paradigmMode'],
                                lexconf["paradigmlexiconName"])
    pp.word_add_parainfo(lexobj, paraobj)
    return jsonify(lexobj)
def wordinfo ( word = '' ) : lexicon = request . args . get ( 'lexicon' , C . config [ 'default' ] ) identifier = word or request . args . get ( 'identifier' ) lexconf = lexconfig . get_lexiconconf ( lexicon ) obj = helpers . give_info ( identifier , lexconf [ 'identifier' ] , lexconf [ 'lexiconMode' ] , lexconf [ "lexiconName" ] ) lexobj = helpers . format_entry ( lexicon , obj ) paraobj = helpers . give_info ( lexobj [ 'paradigm' ] , pp . id_field , lexconf [ 'paradigmMode' ] , lexconf [ "paradigmlexiconName" ] ) pp . word_add_parainfo ( lexobj , paraobj ) return jsonify ( lexobj )
Show information for the word infobox
Show information for the word infobox
" Show information for the word infobox " # Get info about paradigm_entries and variable instances # Merge the paradigmentry and the wordentry
word