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>
26 lines
930 B
ReStructuredText
26 lines
930 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>.depends
|
|
^^^^^^^^^^^^^^^^^^^^
|
|
|
|
Optional. This module property must contain a list of all apps that this
|
|
application depends on. The application is specified as string which is the
|
|
final part of the full module load path. For example, ``names``. Dependencies
|
|
are part of the :class:`~plinth.app.Info` component. Need for this attribute at
|
|
the module level will be removed in the future.
|
|
|
|
|
|
<app-module>.version
|
|
^^^^^^^^^^^^^^^^^^^^
|
|
|
|
Required. Version number of an app. Increasing the version number of an app
|
|
triggers the setup() logic allowing the app to run upgrade scripts. This
|
|
attribute is part of the :class:`~plinth.app.Info` component. Need for this
|
|
attribute at the module level will be removed in the future.
|