view 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
line wrap: on
line source

#!/usr/bin/python
# -*- coding: utf-8 -*-

from flask import Module, render_template, request, url_for
from flask import escape, session, redirect, flash, abort
from mfrontend import db, utils, exceptions
jobcontrol = Module(__name__)

@jobcontrol.route('/')
def index():
    jobs = db.get_jobs(None, None, None)
    return render_template('joblist.html', jobs=jobs)