mflbackend/src/backend.py
def remove_table():
    """
    Remove the  inflection table of a word (ie the whole entry).
    Also remove the word from its paradigm.
    """
    identifier = request.args.get('identifier', '')
    lexicon = request.args.get('lexicon', C.config['default'])
    lexconf = lexconfig.get_lexiconconf(lexicon)
    pos = helpers.read_one_pos(lexconf)
    para = helpers.get_current_paradigm(identifier, pos, lexconf, paradigmdict)

    # remove from the old paradigm
    handle.remove_word_from_paradigm(lexicon, para, paradigmdict, identifier, pos)

    # ask karp for the word's ID
    karp_id = helpers.get_es_identifier(identifier,
                                        lexconf['identifier'],
                                        lexconf['lexiconName'],
                                        lexconf['lexiconMode'])
    # save the inflection table in karp
    # TODO
    helpers.karp_delete(karp_id, resource=lexconf['lexiconName'])
    return jsonify({'identifier': identifier, 'removed': True})

    Remove the  inflection table of a word (ie the whole entry).
    Also remove the word from its paradigm.
    
Remove the  inflection table of a word .
Also remove the word from its paradigm.
Remove the inflection table of a word . Also remove the word from its paradigm .
def remove_table():
    identifier = request.args.get('identifier', '')
    lexicon = request.args.get('lexicon', C.config['default'])
    lexconf = lexconfig.get_lexiconconf(lexicon)
    pos = helpers.read_one_pos(lexconf)
    para = helpers.get_current_paradigm(identifier, pos, lexconf, paradigmdict)
    handle.remove_word_from_paradigm(lexicon, para, paradigmdict, identifier, pos)
    karp_id = helpers.get_es_identifier(identifier,
                                        lexconf['identifier'],
                                        lexconf['lexiconName'],
                                        lexconf['lexiconMode'])
    helpers.karp_delete(karp_id, resource=lexconf['lexiconName'])
    return jsonify({'identifier': identifier, 'removed': True})
def remove_table ( ) : identifier = request . args . get ( 'identifier' , '' ) lexicon = request . args . get ( 'lexicon' , C . config [ 'default' ] ) lexconf = lexconfig . get_lexiconconf ( lexicon ) pos = helpers . read_one_pos ( lexconf ) para = helpers . get_current_paradigm ( identifier , pos , lexconf , paradigmdict ) handle . remove_word_from_paradigm ( lexicon , para , paradigmdict , identifier , pos ) karp_id = helpers . get_es_identifier ( identifier , lexconf [ 'identifier' ] , lexconf [ 'lexiconName' ] , lexconf [ 'lexiconMode' ] ) helpers . karp_delete ( karp_id , resource = lexconf [ 'lexiconName' ] ) return jsonify ( { 'identifier' : identifier , 'removed' : True } )
Remove the  inflection table of a word (ie the whole entry).
Remove the inflection table of a word ( ie the whole entry ) .
"""
    Remove the  inflection table of a word (ie the whole entry).
    Also remove the word from its paradigm.
    """ # remove from the old paradigm # ask karp for the word's ID # save the inflection table in karp # TODO