mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
23 lines
728 B
ReStructuredText
23 lines
728 B
ReStructuredText
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
|
|
|
App Module
|
|
----------
|
|
|
|
These methods are optionally provided by the module in which an app is
|
|
implemented and FreedomBox calls/uses them if they are present.
|
|
|
|
<app-module>.init()
|
|
^^^^^^^^^^^^^^^^^^^
|
|
|
|
Optional. This method is called by FreedomBox soon after all the applications
|
|
are loaded. The ``init()`` call order guarantees that other applications that
|
|
this application depends on will be initialized before this application is
|
|
initialized.
|
|
|
|
<app-module>.depends
|
|
^^^^^^^^^^^^^^^^^^^^
|
|
|
|
Optional. This module property must contain a list of all apps that this
|
|
application depends on. The application is specified as string containing the
|
|
full module load path. For example, ``names``.
|