diff frontend/mfrontend/views/frontend.py @ 1:c3fb1e9fc1f7

(none)
author michalr
date Tue, 22 Feb 2011 18:10:18 +0000
parents
children 79fc37fe85a6
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/frontend/mfrontend/views/frontend.py	Tue Feb 22 18:10:18 2011 +0000
@@ -0,0 +1,8 @@
+from flask import Module
+from mfrontend import db
+frontend = Module(__name__)
+
+@frontend.route('/')
+def index():
+    lol = db.query_db('select id, username, password from users')
+    return lol[0]['username']