Skip to content
Snippets Groups Projects
Commit a7f902f0 authored by Andreas Valder's avatar Andreas Valder
Browse files

filter != test -.-

parent 47b56274
No related branches found
No related tags found
No related merge requests found
...@@ -172,7 +172,8 @@ def handle_errors(endpoint, text, code, *errors, **epargs): ...@@ -172,7 +172,8 @@ def handle_errors(endpoint, text, code, *errors, **epargs):
def handle_not_found(e): def handle_not_found(e):
return render_endpoint('index', 'Diese Seite existiert nicht!'), 404 return render_endpoint('index', 'Diese Seite existiert nicht!'), 404
@app.template_filter(name='equalto') # debian ships jinja2 without this test...
@app.template_test(name='equalto')
def equalto(a,b): def equalto(a,b):
return a == b return a == b
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment