move validation template tage temporarily; it will be removed eventually
This commit is contained in:
parent
fb9158dec8
commit
22f22ef669
@ -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:
|
||||
|
@ -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:
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
{% load validation %}
|
||||
{% load package_extras %}
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Arch Linux - Package Search{% endblock %}
|
||||
|
@ -1,4 +1,3 @@
|
||||
{% load validation %}
|
||||
{% load package_extras %}
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Arch Linux - Package Signoffs{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user