summaryrefslogtreecommitdiffstats
path: root/common/templatetags/validation.py
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2007-12-30 00:07:19 +0100
committereliott <eliott@cactuswax.net>2007-12-30 00:07:19 +0100
commitc1063478aa989685b300c383580fc4ffc8b89f27 (patch)
tree1b04ff152d3e2d3bd261e4a797e5862c1eb30f70 /common/templatetags/validation.py
parent28bc93261ef027d5c175de3d87c15b818543e151 (diff)
downloadarchweb-c1063478aa989685b300c383580fc4ffc8b89f27.tar.gz
archweb-c1063478aa989685b300c383580fc4ffc8b89f27.tar.xz
Moved common to public
Diffstat (limited to 'common/templatetags/validation.py')
-rw-r--r--common/templatetags/validation.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/common/templatetags/validation.py b/common/templatetags/validation.py
deleted file mode 100644
index 40c48da..0000000
--- a/common/templatetags/validation.py
+++ /dev/null
@@ -1,12 +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}