diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/frontend/mfrontend/views/jobcontrol.py	Mon Feb 28 19:25:51 2011 +0100
@@ -0,0 +1,12 @@
+#!/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)