summaryrefslogtreecommitdiff
path: root/controller.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-05-12 10:49:23 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-05-12 10:49:23 +0200
commit0ef8460158520285c89f32a03f387ef6871ce3f1 (patch)
treec0e98d89000feff173b04823239cc2a4a974a6f7 /controller.py
parent01531c519a4a93b985a8494d28f951c746683f56 (diff)
downloadkosten-0ef8460158520285c89f32a03f387ef6871ce3f1.tar.gz
kosten-0ef8460158520285c89f32a03f387ef6871ce3f1.tar.bz2
kosten-0ef8460158520285c89f32a03f387ef6871ce3f1.zip
Fix
Diffstat (limited to 'controller.py')
-rw-r--r--controller.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/controller.py b/controller.py
index b853f2a..617bab5 100644
--- a/controller.py
+++ b/controller.py
@@ -70,7 +70,7 @@ class Add:
form.Textbox(
"date",
form.notnull,
- value = datetime.date.today().strftime(dformat)
+ value = datetime.date.today().strftime(self.dformat)
),
form.Textbox(
"expense",
@@ -85,7 +85,7 @@ class Add:
map(op.itemgetter(0), sorted(Category.query.values(Category.name)))
),
validators = map(lambda x: form.Validator(*x), (
- ("Date Format does not match", lambda f: datetime.datetime.strptime(f.date, Add.dformat)),
+ ("Date Format does not match", lambda f: datetime.datetime.strptime(f.date, self.dformat)),
("Not a valid decimal", lambda f: decimal.Decimal(f.expense)),
))
)