]> asedeno.scripts.mit.edu Git - bluechips.git/blobdiff - bluechips/controllers/history.py
Add history controller to display old transactions
[bluechips.git] / bluechips / controllers / history.py
diff --git a/bluechips/controllers/history.py b/bluechips/controllers/history.py
new file mode 100644 (file)
index 0000000..986d063
--- /dev/null
@@ -0,0 +1,19 @@
+"""
+Display old transactions
+"""
+
+import logging
+
+from bluechips.lib.base import *
+from bluechips.lib.totals import *
+
+import sqlalchemy
+
+log = logging.getLogger(__name__)
+
+class HistoryController(BaseController):
+    def index(self):
+        c.expenditures = meta.Session.query(model.Expenditure).all()
+        c.transfers = meta.Session.query(model.Transfer).all()
+        
+        return render('/history/index.mako')