comparison frontend/mfrontend/views/jobcontrol.py @ 16:c87f82a15606

Dopisałem co nieco do dokumentacji i małę poprawki w zarządzainu zadaniami
author Michał Rudowicz <michal.rudowicz@fl9.eu>
date Sun, 03 Apr 2011 13:47:13 +0200
parents 79cf8ca2a0e5
children 28eb82047167
comparison
equal deleted inserted replaced
15:914d508e87c8 16:c87f82a15606
17 def add(): 17 def add():
18 if request.method == 'POST': 18 if request.method == 'POST':
19 try: 19 try:
20 db.new_job(session['user_id'], 20 db.new_job(session['user_id'],
21 request.form["label"], 21 request.form["label"],
22 request.form["hash"]) 22 request.form["hash"],
23 request.form["method"])
23 return redirect(url_for('index')) 24 return redirect(url_for('index'))
24 except Exception as e: 25 except Exception as e:
25 flash(e) 26 flash(e)
26 return render_template('newjob.html') 27 return render_template('newjob.html')
27 28