Initial commit from Paster template
[xonotic/xonstat.git] / xonstat / views.py
1 from xonstat.models import DBSession
2 from xonstat.models import MyModel
3
4 def my_view(request):
5     dbsession = DBSession()
6     root = dbsession.query(MyModel).filter(MyModel.name==u'root').first()
7     return {'root':root, 'project':'XonStat'}