From 838a2ede8cbfe3212c400f4b94c2f077cb04a048 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 27 Sep 2020 20:53:13 -0700 Subject: [PATCH] doc: dev: Update documentation on calling clients validation Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- doc/dev/tutorial/other.rst | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/doc/dev/tutorial/other.rst b/doc/dev/tutorial/other.rst index cf233a938..d2d5ee81e 100644 --- a/doc/dev/tutorial/other.rst +++ b/doc/dev/tutorial/other.rst @@ -13,24 +13,20 @@ need to list them and present them. Let's add this information to .. code-block:: python3 - from plinth.clients import validate - - clients = validate([{ + clients = [{ 'name': _('Transmission'), 'platforms': [{ 'type': 'web', 'url': '/transmission' }] - }]) + }] Since our app is a simple web application with no clients needed, we just list that. We need to include this into the main app view. In ``__init__.py``, add: .. code-block:: python3 - from .manifest import clients - - clients = clients + from . import manifest In ``views.py``, add: