summaryrefslogtreecommitdiffstats
path: root/public/templatetags/validation.py
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2007-12-30 03:21:10 +0100
committereliott <eliott@cactuswax.net>2007-12-30 03:21:10 +0100
commit706152de89a8c64ebbfb6d91bcafe7a8616f4cef (patch)
tree619feb7b8fd09eef6e05ec5662d846461de269ec /public/templatetags/validation.py
parent89659cef5f309d7eb6bc6ca3d4ab84b779c6728d (diff)
downloadarchweb-706152de89a8c64ebbfb6d91bcafe7a8616f4cef.tar.gz
archweb-706152de89a8c64ebbfb6d91bcafe7a8616f4cef.tar.xz
Moved some things around.
Diffstat (limited to 'public/templatetags/validation.py')
-rw-r--r--public/templatetags/validation.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/public/templatetags/validation.py b/public/templatetags/validation.py
deleted file mode 100644
index 38a4053..0000000
--- a/public/templatetags/validation.py
+++ /dev/null
@@ -1,15 +0,0 @@
-from django import template
-
-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}
-
-# vim: set ts=4 sw=4 et:
-