changeset 857:e17b15f1f260

server: added url_redirections_dict and url_redirections_profile in options
author Goffi <goffi@goffi.org>
date Sun, 24 Jan 2016 18:47:41 +0100
parents fd438e51bda8
children 7dde76708892
files src/twisted/plugins/libervia_server.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/twisted/plugins/libervia_server.py	Sun Jan 24 18:45:35 2016 +0100
+++ b/src/twisted/plugins/libervia_server.py	Sun Jan 24 18:47:41 2016 +0100
@@ -97,7 +97,12 @@
                        ['passphrase', 'k', '', (_(u"Passphrase for the SàT profile named '%s'") % C.SERVICE_PROFILE).encode('utf-8'), str],
                        ['data_dir', 'd', DATA_DIR_DEFAULT, _(u'Data directory for Libervia').encode('utf-8'), coerceDataDir],
                       ]  # options which are in sat.conf and on command line, see https://twistedmatrix.com/documents/current/api/twisted.python.usage.Options.html
-OPT_PARAMETERS_CFG = [['empty_password_allowed_warning_dangerous_list', None, '', None]]  # Options which are in sat.conf only
+# Options which are in sat.conf only
+OPT_PARAMETERS_CFG = [
+    ['empty_password_allowed_warning_dangerous_list', None, '', None],
+    ['url_redirections_profile', None, '', None],
+    ['url_redirections_dict', None, {}, None],
+]
 
 def initialise(options):
     """Method to initialise global modules"""