diff --git a/doc/dev/reference/app_module.rst b/doc/dev/reference/app_module.rst index 001567aaf..1495db396 100644 --- a/doc/dev/reference/app_module.rst +++ b/doc/dev/reference/app_module.rst @@ -32,13 +32,6 @@ 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. -.managed_packages -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Optional. This must contain the list of all packages that this app deals with. -This is mostly needed to enforce better security. This information may be moved -to a separate component in the future. - .managed_services ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/doc/dev/tutorial/components.rst b/doc/dev/tutorial/components.rst index 9b2d801a1..abbb064ab 100644 --- a/doc/dev/tutorial/components.rst +++ b/doc/dev/tutorial/components.rst @@ -126,7 +126,6 @@ Debian packages to be installed. from plinth.package import Packages - managed_packages = ['transmission-daemon'] class TransmissionApp(app_module.App): ... @@ -134,7 +133,7 @@ Debian packages to be installed. def __init__(self): ... - packages = Packages('packages-transmission', managed_packages) + packages = Packages('packages-transmission', ['transmission-daemon']) self.add(packages) The first argument uniquely identifies this instance of the `Packages` diff --git a/doc/dev/tutorial/setup.rst b/doc/dev/tutorial/setup.rst index a7fddc0ac..63b82c9ca 100644 --- a/doc/dev/tutorial/setup.rst +++ b/doc/dev/tutorial/setup.rst @@ -16,11 +16,9 @@ installation: .. code-block:: python3 :caption: ``__init__.py`` - managed_packages = ['transmission-daemon'] - def setup(helper, old_version=None): """Install and configure the module.""" - helper.install(managed_packages) + app.setup(old_version) new_configuration = { 'rpc-whitelist-enabled': False,