def __validate_get_loan_form():

    error = None

    # fetch values and check they are actually provided
    if 'user' in request.form: from_user = request.form['user']
    else: error = 'You need to specify from whom to borrow'
    if 'date' in request.form: date = request.form['date']
    else: error = 'You need to provide a date'
    if 'credit_to' in request.form: credit_to_account = request.form['credit_to']
    else: error = 'You need to provide an account to credit to'
    if 'amount' in request.form: amount = request.form['amount']
    else: error = 'You need to provide an amount'
    if 'description' in request.form and request.form['description']: description = request.form['description']
    else: error = 'You need to provide a description'

    return locals()
Tells registry about an image's metadata
dataset/ETHPy150Open radekstepan/FlaskBudget/presenters/loans.py/__validate_get_loan_form--crossover with--dataset/ETHPy150Open rcbops/glance-buildpackage/glance/registry/client.py/RegistryClient.add_image