]> asedeno.scripts.mit.edu Git - bluechips.git/blob - bluechips/controllers/history.py
Tags that are associated with any expenditures are automatically pruned
[bluechips.git] / bluechips / controllers / history.py
1 """
2 Display old transactions
3 """
4
5 import logging
6
7 from bluechips.lib.base import *
8 from bluechips.lib.totals import *
9
10 import sqlalchemy
11 from sqlalchemy import orm
12
13 log = logging.getLogger(__name__)
14
15 class HistoryController(BaseController):
16     def index(self):
17         c.title = 'History'
18         
19         c.expenditures = meta.Session.query(model.Expenditure).\
20                 options(orm.eagerload('splits')).all()
21         c.transfers = meta.Session.query(model.Transfer).all()
22
23         return render('/history/index.mako')