mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
*: Drop module level depends declaration
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
603b63bbac
commit
019a785cc3
@ -21,8 +21,6 @@ from . import manifest
|
|||||||
|
|
||||||
# pylint: disable=C0103
|
# pylint: disable=C0103
|
||||||
|
|
||||||
depends = ['names']
|
|
||||||
|
|
||||||
_description = [
|
_description = [
|
||||||
format_lazy(
|
format_lazy(
|
||||||
_('Service discovery allows other devices on the network to '
|
_('Service discovery allows other devices on the network to '
|
||||||
@ -49,8 +47,9 @@ class AvahiApp(app_module.App):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
info = app_module.Info(app_id=self.app_id, version=self._version,
|
info = app_module.Info(app_id=self.app_id, version=self._version,
|
||||||
is_essential=True, name=_('Service Discovery'),
|
is_essential=True, depends=['names'],
|
||||||
icon='fa-compass', description=_description,
|
name=_('Service Discovery'), icon='fa-compass',
|
||||||
|
description=_description,
|
||||||
manual_page='ServiceDiscovery')
|
manual_page='ServiceDiscovery')
|
||||||
self.add(info)
|
self.add(info)
|
||||||
|
|
||||||
|
|||||||
@ -23,8 +23,6 @@ from . import api
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
depends = ['storage']
|
|
||||||
|
|
||||||
_description = [
|
_description = [
|
||||||
_('Backups allows creating and managing backup archives.'),
|
_('Backups allows creating and managing backup archives.'),
|
||||||
]
|
]
|
||||||
@ -49,7 +47,7 @@ class BackupsApp(app_module.App):
|
|||||||
|
|
||||||
info = app_module.Info(
|
info = app_module.Info(
|
||||||
app_id=self.app_id, version=self._version, is_essential=True,
|
app_id=self.app_id, version=self._version, is_essential=True,
|
||||||
depends=depends, name=_('Backups'), icon='fa-files-o',
|
depends=['storage'], name=_('Backups'), icon='fa-files-o',
|
||||||
description=_description, manual_page='Backups',
|
description=_description, manual_page='Backups',
|
||||||
donation_url='https://www.borgbackup.org/support/fund.html')
|
donation_url='https://www.borgbackup.org/support/fund.html')
|
||||||
self.add(info)
|
self.add(info)
|
||||||
|
|||||||
@ -24,8 +24,6 @@ _description = [
|
|||||||
'like hostname, domain name, webserver home page etc.')
|
'like hostname, domain name, webserver home page etc.')
|
||||||
]
|
]
|
||||||
|
|
||||||
depends = ['apache', 'firewall', 'names']
|
|
||||||
|
|
||||||
APACHE_CONF_ENABLED_DIR = '/etc/apache2/conf-enabled'
|
APACHE_CONF_ENABLED_DIR = '/etc/apache2/conf-enabled'
|
||||||
APACHE_HOMEPAGE_CONF_FILE_NAME = 'freedombox-apache-homepage.conf'
|
APACHE_HOMEPAGE_CONF_FILE_NAME = 'freedombox-apache-homepage.conf'
|
||||||
APACHE_HOMEPAGE_CONFIG = os.path.join(APACHE_CONF_ENABLED_DIR,
|
APACHE_HOMEPAGE_CONFIG = os.path.join(APACHE_CONF_ENABLED_DIR,
|
||||||
@ -50,9 +48,10 @@ class ConfigApp(app_module.App):
|
|||||||
"""Create components for the app."""
|
"""Create components for the app."""
|
||||||
super().__init__()
|
super().__init__()
|
||||||
info = app_module.Info(app_id=self.app_id, version=self._version,
|
info = app_module.Info(app_id=self.app_id, version=self._version,
|
||||||
is_essential=True, depends=depends,
|
is_essential=True,
|
||||||
name=_('General Configuration'), icon='fa-cog',
|
depends=['apache', 'firewall', 'names'
|
||||||
description=_description,
|
], name=_('General Configuration'),
|
||||||
|
icon='fa-cog', description=_description,
|
||||||
manual_page='Configure')
|
manual_page='Configure')
|
||||||
self.add(info)
|
self.add(info)
|
||||||
|
|
||||||
|
|||||||
@ -17,8 +17,6 @@ from plinth.utils import format_lazy
|
|||||||
|
|
||||||
from . import manifest
|
from . import manifest
|
||||||
|
|
||||||
depends = ['names']
|
|
||||||
|
|
||||||
_description = [
|
_description = [
|
||||||
format_lazy(
|
format_lazy(
|
||||||
_('If your Internet provider changes your IP address periodically '
|
_('If your Internet provider changes your IP address periodically '
|
||||||
@ -50,7 +48,7 @@ class DynamicDNSApp(app_module.App):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
info = app_module.Info(app_id=self.app_id, version=self._version,
|
info = app_module.Info(app_id=self.app_id, version=self._version,
|
||||||
is_essential=True, depends=depends,
|
is_essential=True, depends=['names'],
|
||||||
name=_('Dynamic DNS Client'), icon='fa-refresh',
|
name=_('Dynamic DNS Client'), icon='fa-refresh',
|
||||||
description=_description,
|
description=_description,
|
||||||
manual_page='DynamicDNS')
|
manual_page='DynamicDNS')
|
||||||
|
|||||||
@ -5,7 +5,6 @@ FreedomBox app to configure ejabberd server.
|
|||||||
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import pathlib
|
|
||||||
|
|
||||||
from django.urls import reverse_lazy
|
from django.urls import reverse_lazy
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
@ -45,8 +44,6 @@ _description = [
|
|||||||
'an external server.'), coturn_url=reverse_lazy('coturn:index'))
|
'an external server.'), coturn_url=reverse_lazy('coturn:index'))
|
||||||
]
|
]
|
||||||
|
|
||||||
depends = ['coturn']
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
app = None
|
app = None
|
||||||
@ -63,12 +60,11 @@ class EjabberdApp(app_module.App):
|
|||||||
"""Create components for the app."""
|
"""Create components for the app."""
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
info = app_module.Info(app_id=self.app_id, version=self._version,
|
info = app_module.Info(
|
||||||
|
app_id=self.app_id, version=self._version, depends=['coturn'],
|
||||||
name=_('ejabberd'), icon_filename='ejabberd',
|
name=_('ejabberd'), icon_filename='ejabberd',
|
||||||
short_description=_('Chat Server'),
|
short_description=_('Chat Server'), description=_description,
|
||||||
description=_description,
|
manual_page='ejabberd', clients=manifest.clients)
|
||||||
manual_page='ejabberd',
|
|
||||||
clients=manifest.clients)
|
|
||||||
self.add(info)
|
self.add(info)
|
||||||
|
|
||||||
menu_item = menu.Menu('menu-ejabberd', info.name,
|
menu_item = menu.Menu('menu-ejabberd', info.name,
|
||||||
|
|||||||
@ -23,8 +23,6 @@ from plinth.utils import format_lazy
|
|||||||
|
|
||||||
from . import components, manifest
|
from . import components, manifest
|
||||||
|
|
||||||
depends = ['names']
|
|
||||||
|
|
||||||
_description = [
|
_description = [
|
||||||
format_lazy(
|
format_lazy(
|
||||||
_('A digital certificate allows users of a web service to verify the '
|
_('A digital certificate allows users of a web service to verify the '
|
||||||
@ -59,7 +57,7 @@ class LetsEncryptApp(app_module.App):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
info = app_module.Info(app_id=self.app_id, version=self._version,
|
info = app_module.Info(app_id=self.app_id, version=self._version,
|
||||||
is_essential=True, depends=depends,
|
is_essential=True, depends=['names'],
|
||||||
name=_('Let\'s Encrypt'), icon='fa-lock',
|
name=_('Let\'s Encrypt'), icon='fa-lock',
|
||||||
short_description=_('Certificates'),
|
short_description=_('Certificates'),
|
||||||
description=_description,
|
description=_description,
|
||||||
|
|||||||
@ -39,8 +39,6 @@ _description = [
|
|||||||
'an external server.'), coturn_url=reverse_lazy('coturn:index'))
|
'an external server.'), coturn_url=reverse_lazy('coturn:index'))
|
||||||
]
|
]
|
||||||
|
|
||||||
depends = ['coturn']
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
CONF_DIR = "/etc/matrix-synapse/conf.d/"
|
CONF_DIR = "/etc/matrix-synapse/conf.d/"
|
||||||
@ -68,7 +66,7 @@ class MatrixSynapseApp(app_module.App):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
info = app_module.Info(
|
info = app_module.Info(
|
||||||
app_id=self.app_id, version=self._version,
|
app_id=self.app_id, version=self._version, depends=['coturn'],
|
||||||
name=_('Matrix Synapse'), icon_filename='matrixsynapse',
|
name=_('Matrix Synapse'), icon_filename='matrixsynapse',
|
||||||
short_description=_('Chat Server'), description=_description,
|
short_description=_('Chat Server'), description=_description,
|
||||||
manual_page='MatrixSynapse', clients=manifest.clients)
|
manual_page='MatrixSynapse', clients=manifest.clients)
|
||||||
|
|||||||
@ -16,8 +16,6 @@ from plinth.utils import format_lazy
|
|||||||
|
|
||||||
from . import manifest, utils
|
from . import manifest, utils
|
||||||
|
|
||||||
depends = ['names']
|
|
||||||
|
|
||||||
_description = [
|
_description = [
|
||||||
format_lazy(
|
format_lazy(
|
||||||
_('PageKite is a system for exposing {box_name} services when '
|
_('PageKite is a system for exposing {box_name} services when '
|
||||||
@ -61,7 +59,7 @@ class PagekiteApp(app_module.App):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
info = app_module.Info(
|
info = app_module.Info(
|
||||||
app_id=self.app_id, version=self._version, depends=depends,
|
app_id=self.app_id, version=self._version, depends=['names'],
|
||||||
name=_('PageKite'), icon='fa-flag',
|
name=_('PageKite'), icon='fa-flag',
|
||||||
short_description=_('Public Visibility'), description=_description,
|
short_description=_('Public Visibility'), description=_description,
|
||||||
manual_page='PageKite',
|
manual_page='PageKite',
|
||||||
|
|||||||
@ -9,8 +9,6 @@ from plinth import actions
|
|||||||
from plinth import app as app_module
|
from plinth import app as app_module
|
||||||
from plinth.package import Packages
|
from plinth.package import Packages
|
||||||
|
|
||||||
depends = ['security', 'apache']
|
|
||||||
|
|
||||||
app = None
|
app = None
|
||||||
|
|
||||||
|
|
||||||
@ -25,8 +23,9 @@ class SSOApp(app_module.App):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
info = app_module.Info(app_id=self.app_id, version=self._version,
|
info = app_module.Info(app_id=self.app_id, version=self._version,
|
||||||
is_essential=True, depends=depends,
|
is_essential=True,
|
||||||
name=_('Single Sign On'))
|
depends=['security',
|
||||||
|
'apache'], name=_('Single Sign On'))
|
||||||
self.add(info)
|
self.add(info)
|
||||||
|
|
||||||
packages = Packages('packages-sso', [
|
packages = Packages('packages-sso', [
|
||||||
|
|||||||
@ -22,8 +22,6 @@ from plinth.signals import domain_added, domain_removed
|
|||||||
|
|
||||||
from . import manifest, utils
|
from . import manifest, utils
|
||||||
|
|
||||||
depends = ['names']
|
|
||||||
|
|
||||||
_description = [
|
_description = [
|
||||||
_('Tor is an anonymous communication system. You can learn more '
|
_('Tor is an anonymous communication system. You can learn more '
|
||||||
'about it from the <a href="https://www.torproject.org/">Tor '
|
'about it from the <a href="https://www.torproject.org/">Tor '
|
||||||
@ -48,7 +46,8 @@ class TorApp(app_module.App):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
info = app_module.Info(app_id=self.app_id, version=self._version,
|
info = app_module.Info(app_id=self.app_id, version=self._version,
|
||||||
name=_('Tor'), icon_filename='tor',
|
depends=['names'
|
||||||
|
], name=_('Tor'), icon_filename='tor',
|
||||||
short_description=_('Anonymity Network'),
|
short_description=_('Anonymity Network'),
|
||||||
description=_description, manual_page='Tor',
|
description=_description, manual_page='Tor',
|
||||||
clients=manifest.clients,
|
clients=manifest.clients,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user