diff options
author | eliott <eliott@cactuswax.net> | 2007-12-29 16:42:55 -0800 |
---|---|---|
committer | eliott <eliott@cactuswax.net> | 2007-12-29 16:42:55 -0800 |
commit | 3e297efad8e6dbb7622cedd68a2457f00dd09080 (patch) | |
tree | 1d66d932fa8e90bfa2c71f92d77a24b823831540 /public/templatetags | |
parent | ff6d99b054efddb0725b0ddcbc81c58f7c8ce375 (diff) |
Massive retab fest.
Also added vim command comment to the end of files.
Diffstat (limited to 'public/templatetags')
-rw-r--r-- | public/templatetags/validation.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/public/templatetags/validation.py b/public/templatetags/validation.py index 40c48da9..38a40531 100644 --- a/public/templatetags/validation.py +++ b/public/templatetags/validation.py @@ -4,9 +4,12 @@ register = template.Library() @register.inclusion_tag('errors.html') def print_errors(errors): - errs = [] - for e,msg in errors.iteritems(): - errmsg = str(msg[0]) - # hack -- I'm a python idiot - errs.append( (e, errmsg[2:-2]) ) - return {'errors': errs} + errs = [] + for e,msg in errors.iteritems(): + errmsg = str(msg[0]) + # hack -- I'm a python idiot + errs.append( (e, errmsg[2:-2]) ) + return {'errors': errs} + +# vim: set ts=4 sw=4 et: + |