From 19e45995bfa4eacfe42e32c483c14715afcd4932 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Tue, 19 Mar 2013 20:20:15 +0100 Subject: [PATCH 1/2] Removed print --- dpaste/highlight.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dpaste/highlight.py b/dpaste/highlight.py index 5e25084..ef0389d 100644 --- a/dpaste/highlight.py +++ b/dpaste/highlight.py @@ -29,8 +29,6 @@ class NakedHtmlFormatter(HtmlFormatter): def pygmentize(code_string, lexer_name=LEXER_DEFAULT): lexer_name = LEXER_LIST_NAME.get(lexer_name, None) - - print lexer_name try: if lexer_name: lexer = get_lexer_by_name(lexer_name) From a5bc2ac164070a1bd43ee6258fb0b0d956325654 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Tue, 19 Mar 2013 20:29:31 +0100 Subject: [PATCH 2/2] Error page fixes --- dpaste/templates/dpaste/404.html | 7 +++---- dpaste/templates/dpaste/500.html | 9 ++++----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/dpaste/templates/dpaste/404.html b/dpaste/templates/dpaste/404.html index 4eb3a75..fbd18e5 100644 --- a/dpaste/templates/dpaste/404.html +++ b/dpaste/templates/dpaste/404.html @@ -1,9 +1,8 @@ {% extends "dpaste/base.html" %} -{% block headline %} -

404 Not found

-{% endblock %} +{% block title %}404 Not found{% endblock %} +{% block headline %}404 Not found{% endblock %} -{% block content %} +{% block page %}

Snippet you have searched is not available (anymore).

{% endblock %} diff --git a/dpaste/templates/dpaste/500.html b/dpaste/templates/dpaste/500.html index 6cfefd5..9263c2a 100644 --- a/dpaste/templates/dpaste/500.html +++ b/dpaste/templates/dpaste/500.html @@ -1,9 +1,8 @@ {% extends "dpaste/base.html" %} -{% block headline %} -

500 Internal Server Error

-{% endblock %} +{% block title %}500 Internal Server Error{% endblock %} +{% block headline %}500 Internal Server Error{% endblock %} -{% block content %} -

Sorry, there was an error with your request. My fault!

+{% block page %} +

Sorry, there was an error with your request. The server notified the admin via email.

{% endblock %}