From 78b08758a3f0d347deaed858e326461328c24ee2 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 18 Nov 2021 13:34:02 -0800 Subject: [PATCH] doc/dev: Remove outdated reference to init() at module level init() at module level no longer exists and has been replaced with module_loader itself performing equivalent function. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- doc/dev/tutorial/skeleton.rst | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/doc/dev/tutorial/skeleton.rst b/doc/dev/tutorial/skeleton.rst index 5669df0d8..156d68dcd 100644 --- a/doc/dev/tutorial/skeleton.rst +++ b/doc/dev/tutorial/skeleton.rst @@ -88,20 +88,4 @@ class later. super().__init__() As soon as FreedomBox Service (Plinth) starts, it will load all the enabled -modules. After this, it gives a chance to each of the modules to initialize -itself by calling the ``init()`` method if there is such a method available as -``.init()``. The app class must be instantiated here. - -.. code-block:: python3 - :caption: ``__init__.py`` - - app = None - - def init(): - """Initialize the Transmission module.""" - global app - app = TransmissionApp() - - setup_helper = globals()['setup_helper'] - if setup_helper.get_state() != 'needs-setup' and app.is_enabled(): - app.set_enabled(True) +modules and create app instances for App classes in the module.