[PATCH 6 of 8] e-mail: remove unused setting error_message from ini files

Thomas De Schampheleire patrickdepinguin at gmail.com
Wed Jul 22 19:50:06 UTC 2015


# HG changeset patch
# User Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
# Date 1437026960 -7200
#      Thu Jul 16 08:09:20 2015 +0200
# Node ID f7b9681ad240d1ddd831f117b312cf24f67e33c5
# Parent  be74730111dac1a1f1fcd51a274ae5b5a7a5f540
e-mail: remove unused setting error_message from ini files

The ini files and templates contain a commented setting of 'error_message'
which does not seem to be used. It is referring to the error_message
variable in Paste, which has as description (Paste:ErrorMiddleware):

    When debug mode is off, the error message to show to users.

However, setting this value apparently made no effect at all in Kallithea.

diff --git a/development.ini b/development.ini
--- a/development.ini
+++ b/development.ini
@@ -23,7 +23,6 @@ pdebug = false
 #email_to = admin at localhost
 #error_email_from = paste_error at localhost
 #app_email_from = kallithea-noreply at localhost
-#error_message =
 #email_prefix = [Kallithea]
 
 #smtp_server = mail.server.com
diff --git a/kallithea/bin/template.ini.mako b/kallithea/bin/template.ini.mako
--- a/kallithea/bin/template.ini.mako
+++ b/kallithea/bin/template.ini.mako
@@ -17,7 +17,6 @@ pdebug = false
 #email_to = admin at localhost
 #error_email_from = paste_error at localhost
 #app_email_from = kallithea-noreply at localhost
-#error_message =
 #email_prefix = [Kallithea]
 
 #smtp_server = mail.server.com
diff --git a/kallithea/config/deployment.ini_tmpl b/kallithea/config/deployment.ini_tmpl
--- a/kallithea/config/deployment.ini_tmpl
+++ b/kallithea/config/deployment.ini_tmpl
@@ -18,7 +18,6 @@ pdebug = false
 #email_to = admin at localhost
 #error_email_from = paste_error at localhost
 #app_email_from = kallithea-noreply at localhost
-#error_message =
 #email_prefix = [Kallithea]
 
 #smtp_server = mail.server.com
diff --git a/production.ini b/production.ini
--- a/production.ini
+++ b/production.ini
@@ -22,7 +22,6 @@ pdebug = false
 #email_to = admin at localhost
 #error_email_from = paste_error at localhost
 #app_email_from = kallithea-noreply at localhost
-#error_message =
 #email_prefix = [Kallithea]
 
 #smtp_server = mail.server.com
diff --git a/test.ini b/test.ini
--- a/test.ini
+++ b/test.ini
@@ -22,7 +22,6 @@ pdebug = false
 #email_to = admin at localhost
 #error_email_from = paste_error at localhost
 #app_email_from = kallithea-noreply at localhost
-#error_message =
 #email_prefix = [Kallithea]
 
 #smtp_server = mail.server.com


More information about the kallithea-general mailing list