From 22f22ef66927a09b8eda4d731d5af15e0c42a345 Mon Sep 17 00:00:00 2001 From: Dusty Phillips Date: Tue, 7 Oct 2008 11:59:31 -0400 Subject: move validation template tage temporarily; it will be removed eventually --- devel/templatetags/__init__.py | 0 devel/templatetags/validation.py | 15 --------------- 2 files changed, 15 deletions(-) delete mode 100644 devel/templatetags/__init__.py delete mode 100644 devel/templatetags/validation.py (limited to 'devel') diff --git a/devel/templatetags/__init__.py b/devel/templatetags/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/devel/templatetags/validation.py b/devel/templatetags/validation.py deleted file mode 100644 index 38a40531..00000000 --- a/devel/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: - -- cgit v1.2.3-54-g00ecf