mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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 <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
7470821dc7
commit
fb70fdef6e
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user