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

(none)
author michalr
date Tue, 22 Feb 2011 18:10:18 +0000
parents
children 79fc37fe85a6
rev   line source
1
michalr
parents:
diff changeset
1 from flask import Module
michalr
parents:
diff changeset
2 from mfrontend import db
michalr
parents:
diff changeset
3 frontend = Module(__name__)
michalr
parents:
diff changeset
4
michalr
parents:
diff changeset
5 @frontend.route('/')
michalr
parents:
diff changeset
6 def index():
michalr
parents:
diff changeset
7 lol = db.query_db('select id, username, password from users')
michalr
parents:
diff changeset
8 return lol[0]['username']