summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-07 11:59:31 -0400
committerDusty Phillips <buchuki@gmail.com>2008-10-07 11:59:31 -0400
commit22f22ef66927a09b8eda4d731d5af15e0c42a345 (patch)
treed566d03b5973c67b003e7c3b16e580058e95d8dc
parentfb9158dec8b1b735fa653c98d07f78ca14eb425c (diff)
move validation template tage temporarily; it will be removed eventually
-rw-r--r--devel/templatetags/__init__.py0
-rw-r--r--devel/templatetags/validation.py15
-rw-r--r--packages/templatetags/package_extras.py9
-rw-r--r--templates/packages/search.html1
-rw-r--r--templates/packages/signoffs.html1
5 files changed, 9 insertions, 17 deletions
diff --git a/devel/templatetags/__init__.py b/devel/templatetags/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/devel/templatetags/__init__.py
+++ /dev/null
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:
-
diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py
index 5469f297..5a92565c 100644
--- a/packages/templatetags/package_extras.py
+++ b/packages/templatetags/package_extras.py
@@ -30,5 +30,14 @@ def do_buildsortqs(parser, token):
def space2br(value):
return value.replace(' ', '<br />')
+@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:
diff --git a/templates/packages/search.html b/templates/packages/search.html
index 9629a2c3..f671c3ae 100644
--- a/templates/packages/search.html
+++ b/templates/packages/search.html
@@ -1,4 +1,3 @@
-{% load validation %}
{% load package_extras %}
{% extends "base.html" %}
{% block title %}Arch Linux - Package Search{% endblock %}
diff --git a/templates/packages/signoffs.html b/templates/packages/signoffs.html
index 85c217de..55d534d7 100644
--- a/templates/packages/signoffs.html
+++ b/templates/packages/signoffs.html
@@ -1,4 +1,3 @@
-{% load validation %}
{% load package_extras %}
{% extends "base.html" %}
{% block title %}Arch Linux - Package Signoffs{% endblock %}