mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
Fix typos in module init docs
Intialize -> Initialize Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
bd951fbf2b
commit
f81b1751ce
@ -134,7 +134,7 @@ def on_web_server_stop():
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Intialize and start the application"""
|
"""Initialize and start the application"""
|
||||||
arguments = parse_arguments()
|
arguments = parse_arguments()
|
||||||
|
|
||||||
if arguments.develop:
|
if arguments.develop:
|
||||||
|
|||||||
@ -106,7 +106,7 @@ class Component:
|
|||||||
is_leader = False
|
is_leader = False
|
||||||
|
|
||||||
def __init__(self, component_id):
|
def __init__(self, component_id):
|
||||||
"""Intialize the component."""
|
"""Initialize the component."""
|
||||||
if not component_id:
|
if not component_id:
|
||||||
raise ValueError('Invalid component ID')
|
raise ValueError('Invalid component ID')
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ class FollowerComponent(Component):
|
|||||||
is_leader = False
|
is_leader = False
|
||||||
|
|
||||||
def __init__(self, component_id, is_enabled=False):
|
def __init__(self, component_id, is_enabled=False):
|
||||||
"""Intialize the component."""
|
"""Initialize the component."""
|
||||||
super().__init__(component_id)
|
super().__init__(component_id)
|
||||||
self._is_enabled = is_enabled
|
self._is_enabled = is_enabled
|
||||||
|
|
||||||
|
|||||||
@ -79,7 +79,7 @@ class AvahiApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the service discovery module."""
|
"""Initialize the service discovery module."""
|
||||||
global app
|
global app
|
||||||
app = AvahiApp()
|
app = AvahiApp()
|
||||||
if app.is_enabled():
|
if app.is_enabled():
|
||||||
|
|||||||
@ -71,7 +71,7 @@ class BackupsApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = BackupsApp()
|
app = BackupsApp()
|
||||||
|
|
||||||
|
|||||||
@ -107,7 +107,7 @@ class BindApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the BIND module."""
|
"""Initialize the BIND module."""
|
||||||
global app
|
global app
|
||||||
app = BindApp()
|
app = BindApp()
|
||||||
|
|
||||||
|
|||||||
@ -94,7 +94,7 @@ class CockpitApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = CockpitApp()
|
app = CockpitApp()
|
||||||
|
|
||||||
|
|||||||
@ -87,7 +87,7 @@ class CoquelicotApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = CoquelicotApp()
|
app = CoquelicotApp()
|
||||||
|
|
||||||
|
|||||||
@ -65,7 +65,7 @@ class DateTimeApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the date/time module."""
|
"""Initialize the date/time module."""
|
||||||
global app
|
global app
|
||||||
app = DateTimeApp()
|
app = DateTimeApp()
|
||||||
if app.is_enabled():
|
if app.is_enabled():
|
||||||
|
|||||||
@ -110,7 +110,7 @@ class I2PApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = I2PApp()
|
app = I2PApp()
|
||||||
register_group(group)
|
register_group(group)
|
||||||
|
|||||||
@ -87,7 +87,7 @@ class LetsEncryptApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = LetsEncryptApp()
|
app = LetsEncryptApp()
|
||||||
app.set_enabled(True)
|
app.set_enabled(True)
|
||||||
|
|||||||
@ -107,7 +107,7 @@ class Shortcut(frontpage.Shortcut):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = MediaWikiApp()
|
app = MediaWikiApp()
|
||||||
|
|
||||||
|
|||||||
@ -89,7 +89,7 @@ class MumbleApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the Mumble module."""
|
"""Initialize the Mumble module."""
|
||||||
global app
|
global app
|
||||||
app = MumbleApp()
|
app = MumbleApp()
|
||||||
|
|
||||||
|
|||||||
@ -96,7 +96,7 @@ class PagekiteApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the PageKite module"""
|
"""Initialize the PageKite module"""
|
||||||
global app
|
global app
|
||||||
app = PagekiteApp()
|
app = PagekiteApp()
|
||||||
|
|
||||||
|
|||||||
@ -49,7 +49,7 @@ class SubdomainWidget(forms.widgets.TextInput):
|
|||||||
"""Append the domain to the subdomain bootstrap input field"""
|
"""Append the domain to the subdomain bootstrap input field"""
|
||||||
|
|
||||||
def __init__(self, domain, *args, **kwargs):
|
def __init__(self, domain, *args, **kwargs):
|
||||||
"""Intialize the widget by storing the domain value."""
|
"""Initialize the widget by storing the domain value."""
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.domain = domain
|
self.domain = domain
|
||||||
|
|
||||||
|
|||||||
@ -93,7 +93,7 @@ class PrivoxyApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = PrivoxyApp()
|
app = PrivoxyApp()
|
||||||
|
|
||||||
|
|||||||
@ -91,7 +91,7 @@ class RoundcubeApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = RoundcubeApp()
|
app = RoundcubeApp()
|
||||||
|
|
||||||
|
|||||||
@ -109,7 +109,7 @@ class SearxWebserverAuth(Webserver):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = SearxApp()
|
app = SearxApp()
|
||||||
register_group(group)
|
register_group(group)
|
||||||
|
|||||||
@ -89,7 +89,7 @@ class ShadowsocksApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = ShadowsocksApp()
|
app = ShadowsocksApp()
|
||||||
|
|
||||||
|
|||||||
@ -72,7 +72,7 @@ class SSHApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the ssh module."""
|
"""Initialize the ssh module."""
|
||||||
global app
|
global app
|
||||||
app = SSHApp()
|
app = SSHApp()
|
||||||
if app.is_enabled():
|
if app.is_enabled():
|
||||||
|
|||||||
@ -72,7 +72,7 @@ class StorageApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = StorageApp()
|
app = StorageApp()
|
||||||
app.set_enabled(True)
|
app.set_enabled(True)
|
||||||
|
|||||||
@ -103,7 +103,7 @@ class SyncthingApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = SyncthingApp()
|
app = SyncthingApp()
|
||||||
register_group(group)
|
register_group(group)
|
||||||
|
|||||||
@ -128,7 +128,7 @@ description = [
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = TahoeApp()
|
app = TahoeApp()
|
||||||
|
|
||||||
|
|||||||
@ -102,7 +102,7 @@ class TTRSSApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = TTRSSApp()
|
app = TTRSSApp()
|
||||||
register_group(group)
|
register_group(group)
|
||||||
|
|||||||
@ -65,7 +65,7 @@ class UsersApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the user module."""
|
"""Initialize the user module."""
|
||||||
global app
|
global app
|
||||||
app = UsersApp()
|
app = UsersApp()
|
||||||
app.set_enabled(True)
|
app.set_enabled(True)
|
||||||
|
|||||||
@ -126,7 +126,7 @@ class AppView(FormView):
|
|||||||
port_forwarding_info = None
|
port_forwarding_info = None
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
"""Intialize the view."""
|
"""Initialize the view."""
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self._common_status = None
|
self._common_status = None
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user