@@ -59,12 +59,13 @@ def config_create(config_file, key_value
Additional key=value arguments will be patched/inserted in the [app:main]
section ... until another section name specifies where any following values
should go.
"""
mako_variable_values = {
'version': kallithea.__version__,
'git_hook_interpreter': sys.executable,
'user_home_path': os.path.expanduser('~'),
'kallithea_cli_path': cli_base.kallithea_cli_path,
'ssh_locale': kallithea.lib.locale.get_current_locale(),
}
ini_settings = defaultdict(dict)
@@ -37,12 +37,13 @@ template_file = os.path.join(
default_variables = {
'database_engine': 'sqlite',
'http_server': 'waitress',
'host': '127.0.0.1',
'port': '5000',
'uuid': lambda: 'VERY-SECRET',
'version': '',
variable_options = {
'database_engine': ['sqlite', 'postgres', 'mysql'],
'http_server': ['waitress', 'gearbox', 'gevent', 'gunicorn', 'uwsgi'],
## -*- coding: utf-8 -*-
<%text>##</%text>#################################################################################
<%text>##</%text> Kallithea config file generated with kallithea-config ##
<%text>##</%text> Kallithea config file generated with kallithea-config ${'%-24s' % version }##
<%text>##</%text> ##
<%text>##</%text> The %(here)s variable will be replaced with the parent directory of this file ##
[DEFAULT]
Status change: