mflbackend/src/backend.py
def paradigminfo(paradigm=''):
    " Show information for the paradigm infobox "
    lexicon = request.args.get('lexicon', C.config['default'])
    paradigm = request.args.get('paradigm', paradigm)
    lexconf = lexconfig.get_lexiconconf(lexicon)
    # short: only show top 5 variable instances
    short = request.args.get('short', '')
    short = short in [True, 'true', 'True']
    show = pp.show_short() if short else []
    obj = helpers.give_info(paradigm, pp.id_field,
                            lexconf['paradigmMode'],
                            lexconf["paradigmlexiconName"],
                            show=show)
    return jsonify(obj)
 Show information for the paradigm infobox 
Show information for the paradigm infobox
Show information for the paradigm infobox
def paradigminfo(paradigm=''):
    lexicon = request.args.get('lexicon', C.config['default'])
    paradigm = request.args.get('paradigm', paradigm)
    lexconf = lexconfig.get_lexiconconf(lexicon)
    short = request.args.get('short', '')
    short = short in [True, 'true', 'True']
    show = pp.show_short() if short else []
    obj = helpers.give_info(paradigm, pp.id_field,
                            lexconf['paradigmMode'],
                            lexconf["paradigmlexiconName"],
                            show=show)
    return jsonify(obj)
def paradigminfo ( paradigm = '' ) : lexicon = request . args . get ( 'lexicon' , C . config [ 'default' ] ) paradigm = request . args . get ( 'paradigm' , paradigm ) lexconf = lexconfig . get_lexiconconf ( lexicon ) short = request . args . get ( 'short' , '' ) short = short in [ True , 'true' , 'True' ] show = pp . show_short ( ) if short else [ ] obj = helpers . give_info ( paradigm , pp . id_field , lexconf [ 'paradigmMode' ] , lexconf [ "paradigmlexiconName" ] , show = show ) return jsonify ( obj )
Show information for the paradigm infobox
Show information for the paradigm infobox
" Show information for the paradigm infobox " # short: only show top 5 variable instances
paradigm