move validation template tage temporarily; it will be removed eventually

This commit is contained in:
Dusty Phillips 2008-10-07 11:59:31 -04:00
parent fb9158dec8
commit 22f22ef669
5 changed files with 9 additions and 17 deletions

View File

@ -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:

View File

@ -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:

View File

@ -1,4 +1,3 @@
{% load validation %}
{% load package_extras %}
{% extends "base.html" %}
{% block title %}Arch Linux - Package Search{% endblock %}

View File

@ -1,4 +1,3 @@
{% load validation %}
{% load package_extras %}
{% extends "base.html" %}
{% block title %}Arch Linux - Package Signoffs{% endblock %}