How can I catch values from other def by flask???

fk26541598fk at gmail.com fk26541598fk at gmail.com
Wed Jul 2 05:43:28 EDT 2014


this is my code


def aa():
    if request.method=='POST':
        get_test(value1)
        return value1
    else:
        get_test(value2)
        return value2
    return 'it does not work'

def post_test(value1):
    value1='POST it works'
    return value1
def get_test(value2):
    value2='GET it works'



how can i catch post_test value1 to aa() return???




More information about the Python-list mailing list