From fb70fdef6e085e75414f1ecbe23f8e061d166d3d Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 21 Jun 2022 11:30:34 -0700 Subject: [PATCH] actions: Note that privileged actions can't output to stdout - This can be improved later by using a IPC mechanism other than stdin/stdout. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/actions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plinth/actions.py b/plinth/actions.py index 14d3599c1..cb77b4fc7 100644 --- a/plinth/actions.py +++ b/plinth/actions.py @@ -271,6 +271,8 @@ def privileged(func): to models.py, views.py and urls.py. Currently supported types are bool, int, float, str, dict/Dict, list/List, Optional and Union. + Privileged methods many not output to the stdout as it interferes + with the serialization and de-serialization process. """ setattr(func, '_privileged', True)