Rename Plinth to FreedomBox in code messages

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2018-02-11 15:45:03 +05:30 committed by James Valleroy
parent 90f2117554
commit 6bf5109108
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
5 changed files with 8 additions and 7 deletions

2
Vagrantfile vendored
View File

@ -27,7 +27,7 @@ Vagrant.configure(2) do |config|
systemctl daemon-reload
systemctl restart plinth
SHELL
config.vm.post_up_message = "FreedomBox machine is ready for Plinth development.
config.vm.post_up_message = "FreedomBox machine is ready for development.
You can access it on https://localhost:4430/plinth/ (with an invalid
SSL certificate). You can modify source code on the host machine and
then test it by running:

View File

@ -99,13 +99,14 @@ def parse_arguments():
delete_parser.add_argument('--domain', required=True,
help='Domain name to delete certificate of')
help_hooks = 'Plinth management of certificates (for current domain).'
help_hooks = 'FreedomBox management of certificates (for current domain).'
manage_hook_parser = subparsers.add_parser('manage_hooks', help=help_hooks)
manage_hook_parser.add_argument('command', help=help_hooks,
choices=('enable', 'disable', 'status'))
manage_hook_parser.add_argument('--domain',
help='Domain for hook management command.')
help_module_arg = 'For enable: Also use LE cert with other Plinth modules.'
help_module_arg = 'For enable: Also use LE cert with other FreedomBox ' \
'apps.'
manage_hook_parser.add_argument('--modules', help=help_module_arg,
nargs='+', default=[],
choices=le.MODULES_WITH_HOOKS)

View File

@ -153,9 +153,9 @@ def _get_managed_services():
def _assert_service_is_managed_by_plinth(service_name):
managed_services = _get_managed_services()
if service_name not in managed_services:
msg = ("The service '%s' is not managed by Plinth. Access is only "
msg = ("The service '%s' is not managed by FreedomBox. Access is only "
"permitted for services listed in the 'managed_services' "
"variable of any Plinth module.") % service_name
"variable of any FreedomBox app.") % service_name
raise ValueError(msg)

View File

@ -43,7 +43,7 @@ arguments = None
def parse_arguments():
"""Parse command line arguments"""
parser = argparse.ArgumentParser(
description='Plinth web interface for FreedomBox',
description='Core functionality and web interface for FreedomBox',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
# TODO: server_dir is actually a url prefix; use a better variable name
parser.add_argument('--server_dir', default=cfg.server_dir,

View File

@ -90,7 +90,7 @@ class CoverageCommand(setuptools.Command):
cov.stop()
# Generate an HTML report
html_report_title = 'FreedomBox:Plinth -- Test Coverage as of ' + \
html_report_title = 'FreedomBox -- Test Coverage as of ' + \
time.strftime('%x %X %Z')
cov.html_report(directory=COVERAGE_REPORT_DIR, omit=FILES_TO_OMIT,
title=html_report_title)