Changeset - c677d5839bcc
[Not reviewed]
default
0 2 0
Mads Kiilerich - 7 years ago 2018-10-09 11:45:55
mads@kiilerich.com
make-config: tweak description - don't call it "bare" and don't reference setup-app
2 files changed with 11 insertions and 11 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/paster_commands/make_config.py
Show inline comments
 
@@ -33,21 +33,24 @@ from kallithea.lib.paster_commands.commo
 
from kallithea.lib import inifile
 

	
 

	
 
class Command(BasePasterCommand):
 
    """Kallithea: Create a new config file
 

	
 
    make-config is part of a two-phase installation process (the
 
    second phase is setup-app). make-config creates a bare configuration
 
    file (possibly filling in defaults from the extra
 
    variables you give).
 
    make-config is the first part of the two step setup process. This first
 
    step creates a customized .ini configuration file. The next step is to run
 
    setup-db to populate the database that is referenced in the configuration
 
    file.
 

	
 
    The first key=value arguments are used to customize the Mako variables from
 
    what is shown with --show-defaults. Any following key=value arguments will be
 
    patched/inserted in the [app:main] section ... until another section name
 
    is specified and change where the following values go.
 
    The primary high level configuration keys and their default values are
 
    shown with --show-defaults . Custom values can be specified on the command
 
    line as key=value arguments when creating a config file.
 

	
 
    Additional key=value arguments will be patched/inserted in the [app:main]
 
    section ... until another section name specifies where any following values
 
    should go.
 
    """
 

	
 
    takes_config_file = False # at least not an existing one ...
 

	
 
    def take_action(self, args):
 
        _run(args)
kallithea/tests/base.py
Show inline comments
 
@@ -48,15 +48,12 @@ __all__ = [
 
    'TEST_USER_REGULAR2_PASS', 'TEST_USER_REGULAR2_EMAIL', 'TEST_HG_REPO',
 
    'TEST_HG_REPO_CLONE', 'TEST_HG_REPO_PULL', 'TEST_GIT_REPO',
 
    'TEST_GIT_REPO_CLONE', 'TEST_GIT_REPO_PULL', 'HG_REMOTE_REPO',
 
    'GIT_REMOTE_REPO', 'HG_TEST_REVISION', 'GIT_TEST_REVISION',
 
]
 

	
 
# Invoke websetup with the current config file
 
# SetupCommand('setup-app').run([config_file])
 

	
 
## SOME GLOBALS FOR TESTS
 

	
 
TESTS_TMP_PATH = os.environ.get('KALLITHEA_TESTS_TMP_PATH', tempfile.mkdtemp(prefix='kallithea-test-'))
 

	
 
TEST_USER_ADMIN_LOGIN = 'test_admin'
 
TEST_USER_ADMIN_PASS = 'test12'
0 comments (0 inline, 0 general)