Mercurial > kraina_muminkow
comparison frontend/mfrontend/views/jobcontrol.py @ 9:9a0a9fa7f91d
Dodałem prototyp listy zadań w systemie
author | Michał Rudowicz <michal.rudowicz@fl9.eu> |
---|---|
date | Mon, 28 Feb 2011 19:25:51 +0100 |
parents | |
children | 58a993029d9f |
comparison
equal
deleted
inserted
replaced
8:e00d04093c60 | 9:9a0a9fa7f91d |
---|---|
1 #!/usr/bin/python | |
2 # -*- coding: utf-8 -*- | |
3 | |
4 from flask import Module, render_template, request, url_for | |
5 from flask import escape, session, redirect, flash, abort | |
6 from mfrontend import db, utils, exceptions | |
7 jobcontrol = Module(__name__) | |
8 | |
9 @jobcontrol.route('/') | |
10 def index(): | |
11 jobs = db.get_jobs(None, None, None) | |
12 return render_template('joblist.html', jobs=jobs) |