From 40830f73f10c91187ad218acd461192f7cae2187 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 16 Nov 2021 16:22:42 -0800 Subject: [PATCH] doc/dev: Remove mention of managed_services Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- doc/dev/reference/app_module.rst | 8 -------- doc/dev/tutorial/components.rst | 4 +--- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/doc/dev/reference/app_module.rst b/doc/dev/reference/app_module.rst index 1495db396..154a0bcef 100644 --- a/doc/dev/reference/app_module.rst +++ b/doc/dev/reference/app_module.rst @@ -32,14 +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_services -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Optional. This must contain the list of all services that this app deals with. -This is mostly needed to enforce better security. This information is part of -the :class:`~plinth.daemon.Daemon` component. Need for this attribute at the -module level will be removed in the future. - .managed_paths ^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/doc/dev/tutorial/components.rst b/doc/dev/tutorial/components.rst index abbb064ab..9ba1b25a9 100644 --- a/doc/dev/tutorial/components.rst +++ b/doc/dev/tutorial/components.rst @@ -92,15 +92,13 @@ our app's class. from plinth.daemon import Daemon - managed_services = ['transmission-daemon'] - class TransmissionApp(app_module.App): ... def __init__(self): ... - daemon = Daemon('daemon-transmission', managed_services[0], + daemon = Daemon('daemon-transmission', 'transmission-daemon', listen_ports=[(9091, 'tcp4')]) self.add(daemon)