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 daemon-reload
systemctl restart plinth systemctl restart plinth
SHELL 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 You can access it on https://localhost:4430/plinth/ (with an invalid
SSL certificate). You can modify source code on the host machine and SSL certificate). You can modify source code on the host machine and
then test it by running: then test it by running:

View File

@ -99,13 +99,14 @@ def parse_arguments():
delete_parser.add_argument('--domain', required=True, delete_parser.add_argument('--domain', required=True,
help='Domain name to delete certificate of') 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 = subparsers.add_parser('manage_hooks', help=help_hooks)
manage_hook_parser.add_argument('command', help=help_hooks, manage_hook_parser.add_argument('command', help=help_hooks,
choices=('enable', 'disable', 'status')) choices=('enable', 'disable', 'status'))
manage_hook_parser.add_argument('--domain', manage_hook_parser.add_argument('--domain',
help='Domain for hook management command.') 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, manage_hook_parser.add_argument('--modules', help=help_module_arg,
nargs='+', default=[], nargs='+', default=[],
choices=le.MODULES_WITH_HOOKS) choices=le.MODULES_WITH_HOOKS)

View File

@ -153,9 +153,9 @@ def _get_managed_services():
def _assert_service_is_managed_by_plinth(service_name): def _assert_service_is_managed_by_plinth(service_name):
managed_services = _get_managed_services() managed_services = _get_managed_services()
if service_name not in 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' " "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) raise ValueError(msg)

View File

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

View File

@ -90,7 +90,7 @@ class CoverageCommand(setuptools.Command):
cov.stop() cov.stop()
# Generate an HTML report # 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') time.strftime('%x %X %Z')
cov.html_report(directory=COVERAGE_REPORT_DIR, omit=FILES_TO_OMIT, cov.html_report(directory=COVERAGE_REPORT_DIR, omit=FILES_TO_OMIT,
title=html_report_title) title=html_report_title)