summaryrefslogtreecommitdiff
path: root/app/views/consts.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-10-16 10:54:40 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-10-16 10:54:40 +0200
commit9621f1d1dcde09617a2f9bf9908affece64ef643 (patch)
tree6f55aaeb27c12a44b13bb3d64184554155825c75 /app/views/consts.py
parent74e64cbef6af5f46ff1a2ca010a7ab60ba0c7fe0 (diff)
downloadkosten-9621f1d1dcde09617a2f9bf9908affece64ef643.tar.gz
kosten-9621f1d1dcde09617a2f9bf9908affece64ef643.tar.bz2
kosten-9621f1d1dcde09617a2f9bf9908affece64ef643.zip
Allow @templated to be called raw, i.e. w/o ()
Diffstat (limited to 'app/views/consts.py')
-rw-r--r--app/views/consts.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/consts.py b/app/views/consts.py
index dbf2422..cb50704 100644
--- a/app/views/consts.py
+++ b/app/views/consts.py
@@ -33,7 +33,7 @@ def const_form(cur=None, obj=None):
@mod.route('/')
@login_required
-@templated()
+@templated
def list ():
d = today()
@@ -57,14 +57,14 @@ def list ():
@mod.route('/<int:id>')
@login_required
@assert_authorisation('id')
-@templated()
+@templated
def show(id):
return { 'exp': ConstExpense.get(id) }
@mod.route('/edit/<int:id>', methods=('GET', 'POST'))
@login_required
@assert_authorisation('id')
-@templated()
+@templated
def edit(id):
exp = ConstExpense.get(id)
form = const_form(exp)
@@ -104,7 +104,7 @@ def add_from(other):
@mod.route('/add/', methods=('GET', 'POST'))
@login_required
-@templated()
+@templated
def add ():
exp = ConstExpense()