Rename Plinth to FreedomBox in comments

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 11:42:46 +05:30 committed by James Valleroy
parent 2723822b71
commit 90f2117554
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
15 changed files with 32 additions and 30 deletions

View File

@ -65,8 +65,8 @@ def subcommand_setup(_):
# enable mod_headers for HSTS
webserver.enable('headers', kind='module')
# enable some critical modules to avoid restart while installing Plinth
# applications.
# enable some critical modules to avoid restart while installing
# FreedomBox applications.
webserver.enable('cgi', kind='module')
webserver.enable('authnz_ldap', kind='module')

View File

@ -416,8 +416,9 @@ def _run_action(action, action_options=None):
"""
Run a specific action from another module, for the run_renew_hooks command.
This function is a simplified version of plinth/actions.py, to enable
somewhat safe calls of other actions from outside the Plinth process.
The comments about the action contracts refer to plinth/actions.py.
somewhat safe calls of other actions from outside the FreedomBox Service
(Plinth) process. The comments about the action contracts refer to
plinth/actions.py.
"""
if action_options is None:
action_options = []

View File

@ -144,14 +144,14 @@ function setup {
}
#
# For a user who installed using freedombox-setup Debian package, when Plinth is
# run for the first time, don't run network setup. This is ensured by checking
# for the file /var/lib/freedombox/is-freedombox-disk-image which will not
# exist.
# For a user who installed using freedombox-setup Debian package, when
# FreedomBox Service (Plinth) is run for the first time, don't run network
# setup. This is ensured by checking for the file
# /var/lib/freedombox/is-freedombox-disk-image which will not exist.
#
# For a user who installed using FreedomBox disk image, when Plinth runs for the
# first time, setup process executes and triggers the script due networks module
# being an essential module.
# For a user who installed using FreedomBox disk image, when FreedomBox Service
# (Plinth) runs for the first time, setup process executes and triggers the
# script due networks module being an essential module.
#
if [ -f "/var/lib/freedombox/is-freedombox-disk-image" ]
then

View File

@ -130,7 +130,7 @@ def _get_managed_services_of_module(modulepath):
def _get_managed_services():
"""
Get a set of all services managed by Plinth
Get a set of all services managed by FreedomBox.
This collects all service-names inside the 'managed_services' variable of
modules inside 'module_config_path'

View File

@ -97,7 +97,7 @@ def subcommand_first_setup(_):
# XXX: Instead of a separate action that is conditionally called for a
# version number, we can check if the domain currently configured is what
# we want and then based on the value do a reconfiguration. This approach
# will work better when Plinth state is reset etc.
# will work better when FreedomBox state is reset etc.
action_utils.dpkg_reconfigure('slapd', {'domain': 'thisbox'})

View File

@ -1,8 +1,8 @@
# This is a consequnce of bug in jsxc
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838183. While is is possible
# to change the upstream Plinth code to remove the links and create during
# installation, the jsxc module in Plinth will stop working in certain modes of
# development. We belive the proper fix for the problem is to fix the above
# to change the upstream FreedomBox code to remove the links and create during
# installation, the jsxc module in FreedomBox will stop working in certain modes
# of development. We belive the proper fix for the problem is to fix the above
# issue.
plinth source: source-contains-unsafe-symlink plinth/modules/jsxc/static/img
plinth source: source-contains-unsafe-symlink plinth/modules/jsxc/static/libjs-jsxc/jsxc.css

View File

@ -21,7 +21,7 @@ Project specific errors
class PlinthError(Exception):
"""Base class for all Plinth specific errors."""
"""Base class for all FreedomBox specific errors."""
pass

View File

@ -1,5 +1,5 @@
List of commonly used terms with multiple Danish Translation
candidates and the one used for Plinth.
candidates and the one used for FreedomBox.
Generally it has been sought to use the "less techy" option with
a good established meaning in commonly spoken Danish. Also with

View File

@ -20,7 +20,7 @@
#
"""
Initial Django migration for Plinth to create database tables.
Initial Django migration for FreedomBox to create database tables.
"""
from __future__ import unicode_literals
@ -29,7 +29,7 @@ from django.db import migrations, models
class Migration(migrations.Migration):
"""Initial migration schema for Plinth models."""
"""Initial migration schema for FreedomBox models."""
initial = True

View File

@ -67,8 +67,8 @@ def setup(helper, old_version=False):
"""Install and configure the module."""
helper.install(managed_packages)
# Reload avahi-daemon now that first-run does not reboot. After performing
# Plinth package installation, new Avahi files will be available and
# require restart.
# FreedomBox Service (Plinth) package installation, new Avahi files will be
# available and require restart.
helper.call('post', actions.superuser_run, 'service',
['reload', 'avahi-daemon'])

View File

@ -44,7 +44,7 @@ first_boot_steps = [
name = _('Users and Groups')
# List of all Plinth user groups
# List of all FreedomBox user groups
groups = set()

View File

@ -72,9 +72,10 @@ class Transaction(object):
def install(self):
"""Run an apt-get transaction to install given packages.
Plinth needs to be running as root when calling this.
Currently, this is meant to be only during first time setup
when --setup is argument is passed.
FreedomBox Service (Plinth) needs to be running as root when calling
this. Currently, this is meant to be only during first time setup when
--setup is argument is passed.
"""
try:
self._run_apt_command(['update'])

View File

@ -301,8 +301,8 @@ def run_setup_on_modules(module_list, allow_install=True):
setup on all essential modules only.
allow_install with or without package installation. When setting up
essential modules, installing packages is not required as Plinth itself has
dependencies on all essential modules.
essential modules, installing packages is not required as FreedomBox
(Plinth) itself has dependencies on all essential modules.
"""
try:

View File

@ -36,7 +36,7 @@ logging.disable(logging.CRITICAL)
class TestCfg(unittest.TestCase):
"""Verify that the Plinth configuration module behaves as expected."""
"""Verify that the configuration module behaves as expected."""
@classmethod
def setUpClass(cls):

View File

@ -61,7 +61,7 @@ def dump_menu(menu):
class MenuTestCase(TestCase):
"""Verify the behavior of the Plinth Menu class."""
"""Verify the behavior of the Menu class."""
def test_init(self):
"""Verify that main_menu and essential items are created."""