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

2014-07-02 Thread fk26541598fk
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):

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

2014-07-02 Thread Steven D'Aprano
On Wed, 02 Jul 2014 02:43:28 -0700, fk26541598fk wrote: this is my code Change the code as shown below: def aa(): if request.method=='POST': get_test(value1) return value1 def aa(): if request.method=='POST': value1 = post_test() return value1

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

2014-07-02 Thread Frank Liou
Steven Thank you!!! it's work i'm so appreciate that hava a nice day^^ -- https://mail.python.org/mailman/listinfo/python-list